Browse Source
Merge pull request #474 from avant1/keep-custom-port-in-redirect
Avoid redirects with custom port dropped
pull/653/head
Hiroki Nakayama
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
2 deletions
-
nginx/nginx.conf
|
@ -8,7 +8,7 @@ server { |
|
|
|
|
|
|
|
|
location / { |
|
|
location / { |
|
|
root /var/www/html; |
|
|
root /var/www/html; |
|
|
try_files $uri $uri/ /index.html; |
|
|
|
|
|
|
|
|
try_files $uri /index.html; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
location /v1/ { |
|
|
location /v1/ { |
|
@ -26,10 +26,15 @@ server { |
|
|
proxy_redirect off; |
|
|
proxy_redirect off; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
location = /admin { |
|
|
|
|
|
absolute_redirect off; |
|
|
|
|
|
return 301 /admin/; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
location /static/ { |
|
|
location /static/ { |
|
|
autoindex on; |
|
|
autoindex on; |
|
|
alias /static/; |
|
|
alias /static/; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
server_tokens off; |
|
|
|
|
|
|
|
|
server_tokens off; |