Try using try_files

This commit is contained in:
Anthony Wang 2021-07-20 16:42:29 +00:00 committed by GitHub
parent 1f4b0fe8f2
commit 8c75c139f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,8 +49,8 @@ server {
location ~ ^/~(.*)$ {
root /srv/http/pages;
index index.html;
rewrite ^/~(.*)$ /$1 last;
try_files $uri $uri/ index.html;
}
location / {