Scope
This skill covers the software layer — what runs inside a machine.
For infrastructure (provisioning VMs, SSH hardening, firewalls, backups), use the vps skill.
When to Use
- Configuring nginx, Caddy, or Apache
- Deploying Node.js, Python, Go, or other apps
- Docker and Docker Compose setups
- SSL/TLS certificates with Let's Encrypt
- Reverse proxy and load balancing
- Process management (pm2, systemd services)
- Troubleshooting port conflicts, CORS, connection errors
- Self-hosting (Plex, Nextcloud, game servers)
- Local development servers (Vite, webpack-dev-server)
Common Pitfalls
- Port already in use — Check with
lsof -i :PORT or ss -tlnp | grep PORT, kill stale processes
- CORS in development — Proxy through your dev server or configure backend headers, don't disable in production
- SSL certificate issues — Certbot needs port 80/443 open, use
--standalone or --webroot mode appropriately
- nginx config not loading — Always run
nginx -t before systemctl reload nginx
- Docker container can't reach host — Use
host.docker.internal (Docker Desktop) or 172.17.0.1 (Linux)
- Process dies after SSH disconnect — Use systemd, pm2, or run inside tmux/screen
- Wrong permissions on mounted volumes — Match container user UID with host file ownership
Patterns by Use Case
| Use Case |
Recommended Stack |
| Static site |
Caddy (auto-SSL, zero config) |
| Node.js app |
PM2 + nginx reverse proxy |
| Python (Django/FastAPI) |
Gunicorn + nginx |
| Multiple services |
Docker Compose + Traefik |
| Game server |
Dedicated container + port mapping |
For framework-specific configs, see configs.md.
For Docker Compose patterns, see docker.md.
Debugging Checklist
- Is the process running?
systemctl status or docker ps
- Is it listening?
ss -tlnp | grep PORT
- Can you reach it locally?
curl localhost:PORT
- Firewall blocking? Check
ufw status or cloud security groups
- Reverse proxy misconfigured? Check nginx logs:
/var/log/nginx/error.log
- DNS pointing correctly?
dig domain.com or nslookup
1---
2name: server
3description: Configure, deploy, and troubleshoot web servers, application servers, and containerized services.
4metadata:
5 source: https://skillmd.com/skills/modbender/server
6---
7
8## Scope
9
10This skill covers the **software layer** — what runs inside a machine.
11For infrastructure (provisioning VMs, SSH hardening, firewalls, backups), use the `vps` skill.
12
13## When to Use
14
15- Configuring nginx, Caddy, or Apache
16- Deploying Node.js, Python, Go, or other apps
17- Docker and Docker Compose setups
18- SSL/TLS certificates with Let's Encrypt
19- Reverse proxy and load balancing
20- Process management (pm2, systemd services)
21- Troubleshooting port conflicts, CORS, connection errors
22- Self-hosting (Plex, Nextcloud, game servers)
23- Local development servers (Vite, webpack-dev-server)
24
25## Common Pitfalls
26
27- **Port already in use** — Check with `lsof -i :PORT` or `ss -tlnp | grep PORT`, kill stale processes
28- **CORS in development** — Proxy through your dev server or configure backend headers, don't disable in production
29- **SSL certificate issues** — Certbot needs port 80/443 open, use `--standalone` or `--webroot` mode appropriately
30- **nginx config not loading** — Always run `nginx -t` before `systemctl reload nginx`
31- **Docker container can't reach host** — Use `host.docker.internal` (Docker Desktop) or `172.17.0.1` (Linux)
32- **Process dies after SSH disconnect** — Use systemd, pm2, or run inside tmux/screen
33- **Wrong permissions on mounted volumes** — Match container user UID with host file ownership
34
35## Patterns by Use Case
36
37| Use Case | Recommended Stack |
38|----------|-------------------|
39| Static site | Caddy (auto-SSL, zero config) |
40| Node.js app | PM2 + nginx reverse proxy |
41| Python (Django/FastAPI) | Gunicorn + nginx |
42| Multiple services | Docker Compose + Traefik |
43| Game server | Dedicated container + port mapping |
44
45For framework-specific configs, see `configs.md`.
46For Docker Compose patterns, see `docker.md`.
47
48## Debugging Checklist
49
501. **Is the process running?** `systemctl status` or `docker ps`
512. **Is it listening?** `ss -tlnp | grep PORT`
523. **Can you reach it locally?** `curl localhost:PORT`
534. **Firewall blocking?** Check `ufw status` or cloud security groups
545. **Reverse proxy misconfigured?** Check nginx logs: `/var/log/nginx/error.log`
556. **DNS pointing correctly?** `dig domain.com` or `nslookup`