diff --git a/common/etc/nginx/templates/default.conf.template b/common/etc/nginx/templates/default.conf.template index de906e02..9436e36f 100644 --- a/common/etc/nginx/templates/default.conf.template +++ b/common/etc/nginx/templates/default.conf.template @@ -66,6 +66,8 @@ server { } location / { + try_files $uri $uri/ /index.html; + # This value is templated in based on the value of $CORS_ENABLED. When # CORS is enabled, acceptable methods are GET, HEAD, and OPTIONS. # Otherwise, they are GET and HEAD. @@ -93,6 +95,8 @@ server { } location @s3 { + try_files $uri $uri/ /index.html; + # We include only the headers needed for the authentication signatures that # we plan to use. include /etc/nginx/conf.d/gateway/v${AWS_SIGS_VERSION}_headers.conf;