....
This commit is contained in:
11
nginx.conf
11
nginx.conf
@@ -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/...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user