server { listen 80; server_name <%= current_site.domain %> *.<%= current_site.domain %> access_log /var/log/nginx/neocities-domains.log neocitiesdomain; root /home/web/neocities-web/public/sites/<%= current_site.username %>; index /index.html; error_page 404 = @notfound; location @notfound { try_files /not_found.html @notfound_root; } location @notfound_root { root /home/web/neocities-web/public; try_files /web_site_not_found.html =404; } location ~* \.(html|jpg|jpeg|png|gif|ico|css|js)$ { # expires 20s; log_not_found off; } }