Skip to content

Commit 6c8bb0a

Browse files
committed
Remove directory check, replace with index.html
The `try_files` directive in nginx will issue a 301 response if the given URI (`$uri`) exists as a directory (though this behavior is not explicitly documented). We remove the directory check and replace it with an explicit check for `index.html`.
1 parent 9a57940 commit 6c8bb0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/config/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ http {
125125
# See if the URI exists, as a file or as a directory, under
126126
# /srv/pbench/public_html and serve that. If it doesn't, just serve
127127
# /dashboard/index.html.
128-
try_files $uri $uri/ /dashboard/index.html;
128+
try_files $uri $uri/index.html /dashboard/index.html;
129129
}
130130

131131
location /static/ {

0 commit comments

Comments
 (0)