nginx is ready to serve

This page is the placeholder you see when no site matches the request. The server is reachable, your network is fine, and the daemon is responding.

What to do next

  1. Place your site files in /usr/share/nginx/html or update root in your server block.
  2. Drop a new config file into /etc/nginx/conf.d/yoursite.conf.
  3. Validate with nginx -t.
  4. Apply with sudo systemctl reload nginx.
  5. Refresh the browser and confirm the new site responds.

Logs and diagnostics

Errors are written to /var/log/nginx/error.log. Access lines go to access.log. Watch them live with tail -f while you experiment.

HTTPS

Pair nginx with an ACME client for automatic certificates, or stack it behind a TLS-terminating load balancer if you prefer. Most setups also enable HTTP/2 by appending http2 on the listen 443 ssl line.

Tuning knobs

host srv-01.example.net · nginx