generated from hantim/static-site-template
return 404 for missing files instead of index.html
Build and Push Docker Image / build (push) Successful in 10s
Build and Push Docker Image / build (push) Successful in 10s
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ server {
|
||||
|
||||
# Clean URLs — serve index.html for directories
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# Cache static assets aggressively
|
||||
|
||||
Reference in New Issue
Block a user