Skip to content

Commit 7c32539

Browse files
authored
🐛 Fix 403 when the frontend has a directory without an index.html (fastapi#1094)
1 parent aebf359 commit 7c32539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ server {
44
location / {
55
root /usr/share/nginx/html;
66
index index.html index.htm;
7-
try_files $uri $uri/ /index.html =404;
7+
try_files $uri /index.html =404;
88
}
99

1010
include /etc/nginx/extra-conf.d/*.conf;

0 commit comments

Comments
 (0)