fix: Try adding index.html to try files
This commit is contained in:
4
sites.py
4
sites.py
@@ -169,7 +169,7 @@ def write_nginx_conf(site):
|
||||
server_name {domain} *.{domain};
|
||||
|
||||
location / {{
|
||||
try_files \$uri \$uri/ @htmlext;
|
||||
try_files \$uri \$uri/ $uri/index.html @htmlext;
|
||||
}}
|
||||
|
||||
location ~ \.html$ {{
|
||||
@@ -205,7 +205,7 @@ def write_nginx_conf(site):
|
||||
server_name {alt} *.{alt};
|
||||
|
||||
location / {{
|
||||
try_files \$uri \$uri/ @htmlext;
|
||||
try_files \$uri \$uri/ $uri/index.html @htmlext;
|
||||
}}
|
||||
|
||||
location ~ \.html$ {{
|
||||
|
||||
Reference in New Issue
Block a user