mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
23 lines
No EOL
548 B
Text
23 lines
No EOL
548 B
Text
server {
|
|
listen 80;
|
|
server_name <%== domain %> *.<%== domain %>;
|
|
access_log /var/log/nginx/neocities-domains.log neocitiesdomain;
|
|
root /home/web/neocities-web/public/sites/<%== 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;
|
|
}
|
|
} |