Skip to content

Commit

Permalink
try_files 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HwakyoungLee committed Mar 7, 2023
1 parent 9b07f61 commit ef24f55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ef24f55

Please sign in to comment.