Serve multisite blogs from explicit Nginx roots
Some checks are pending
Build / build (push) Waiting to run

This commit is contained in:
Neeldhara Misra 2026-06-13 20:16:35 +02:00
parent b3cd8a8914
commit 64a9ce84d4
3 changed files with 64 additions and 32 deletions

View file

@ -0,0 +1,19 @@
index index.html;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;
location = /nginx-health {
access_log off;
return 204;
}
location ~* \.(?:css|js|mjs|png|jpg|jpeg|gif|svg|webp|ico|woff2?)$ {
try_files $uri =404;
expires 1y;
add_header Cache-Control "public, immutable";
}
location / {
try_files $uri $uri/index.html /index.html /404.html;
}