This commit is contained in:
backuppc
2026-01-21 13:43:43 +09:00
parent c1312c99ce
commit 18b746e025
3 changed files with 7 additions and 8 deletions

View File

@@ -11,12 +11,11 @@ server {
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
location / {
try_files $uri $uri/ /index.html;
location /ftp/ {
alias /usr/share/nginx/html/ftp/;
try_files $uri $uri/ /ftp/index.html;
}
# Handle assets correctly to avoid fallback to index.html for missing files
location /assets/ {
try_files $uri =404;
}
# Handle assets explicitly if needed, but the above generic rule covers it if files exist
# If the user requests /ftp/assets/..., the alias maps it to /usr/share/nginx/html/ftp/assets/...
}