1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
For a static website: server { listen 80; listen [::]:80; server_name <example.com>; root /srv/http/<example.com>/www; index index.html; location / { try_files $uri $uri/ =404; } } For a reverse proxied website: XXX: TODO