Skip to content

Commit ec16b00

Browse files
committed
Try rewriting static path
1 parent f6c1e27 commit ec16b00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ http {
500500
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;";
501501

502502
location = /static {
503-
autoindex off;
504-
proxy_pass http://digitransit-site:8080;
503+
rewrite /static / break;
504+
proxy_pass http://digitransit-site:8080;
505505
include basicsettings.conf;
506506
}
507507

0 commit comments

Comments
 (0)