Files
kgva/nginx.conf
T
2026-06-29 01:37:03 +02:00

20 lines
448 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# clean URLs: /portfolio/museo/ → its index.html, else 404
location / {
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
# long cache for fingerprinted/static assets
location ~* \.(css|js|woff2|webp|svg|png|jpe?g|ico)$ {
expires 7d;
add_header Cache-Control "public, max-age=604800";
}
}