From ef24f5577d38c5fb017b22de90ff2e38c150e0a5 Mon Sep 17 00:00:00 2001 From: "Hwakyoung Lee (Young)" Date: Tue, 7 Mar 2023 13:59:07 +0900 Subject: [PATCH] =?UTF-8?q?try=5Ffiles=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/etc/nginx/templates/default.conf.template | 4 ++++ 1 file changed, 4 insertions(+) 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;