Merge pull request #421 from carbonin/use_http_host_in_slash_redirect

Use $http_host in trailing slash redirect
This commit is contained in:
Matthew Jones 2017-10-13 14:12:21 -04:00 committed by GitHub
commit ef05df9224

View File

@ -76,7 +76,7 @@ http {
location / {
# Add trailing / if missing
rewrite ^(.*[^/])$ $1/ permanent;
rewrite ^(.*)$http_host(.*[^/])$ $1$http_host$2/ permanent;
uwsgi_read_timeout 120s;
uwsgi_pass uwsgi;
include /etc/nginx/uwsgi_params;