mirror of
https://github.com/RYDE-WORK/full-stack-fastapi-template.git
synced 2026-01-31 03:03:17 +08:00
🐛 Fix 403 when the frontend has a directory without an index.html (#1094)
This commit is contained in:
parent
fa7d42eddd
commit
6aa2296dea
@ -4,7 +4,7 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
try_files $uri $uri/ /index.html =404;
|
try_files $uri /index.html =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
include /etc/nginx/extra-conf.d/*.conf;
|
include /etc/nginx/extra-conf.d/*.conf;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user