fix: Try adding index.html to try files

This commit is contained in:
Nathan Woodburn 2024-02-23 15:03:25 +11:00
parent 084a161e80
commit 072d7c7b58
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -169,7 +169,7 @@ def write_nginx_conf(site):
server_name {domain} *.{domain}; server_name {domain} *.{domain};
location / {{ location / {{
try_files \$uri \$uri/ @htmlext; try_files \$uri \$uri/ $uri/index.html @htmlext;
}} }}
location ~ \.html$ {{ location ~ \.html$ {{
@ -205,7 +205,7 @@ def write_nginx_conf(site):
server_name {alt} *.{alt}; server_name {alt} *.{alt};
location / {{ location / {{
try_files \$uri \$uri/ @htmlext; try_files \$uri \$uri/ $uri/index.html @htmlext;
}} }}
location ~ \.html$ {{ location ~ \.html$ {{