Try try_files.

This commit is contained in:
Tom Alexander 2024-10-19 17:56:45 -04:00
parent 6126f26694
commit bcf821dc58
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

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;