Try try_files.

This commit is contained in:
Tom Alexander
2024-10-19 17:56:45 -04:00
parent 6126f26694
commit bcf821dc58

View File

@@ -31,6 +31,8 @@ http {
root /srv/http/public;
location / {
try_files $uri $uri/ =404;
index index.html index.htm;
if (-d $request_filename) {
rewrite [^/]$ $http_x_forwarded_proto://$http_host$uri/ redirect;