BadDaemons/nginx.conf
2020-08-21 21:56:33 +02:00

24 lines
453 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|mp4|ogg|ogv|webm|htc)$ {
expires 30d;
}
location ~* \.(css|js)$ {
expires 7d;
}
}