mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Merge pull request #421 from carbonin/use_http_host_in_slash_redirect
Use $http_host in trailing slash redirect
This commit is contained in:
@@ -76,7 +76,7 @@ http {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
# Add trailing / if missing
|
# Add trailing / if missing
|
||||||
rewrite ^(.*[^/])$ $1/ permanent;
|
rewrite ^(.*)$http_host(.*[^/])$ $1$http_host$2/ permanent;
|
||||||
uwsgi_read_timeout 120s;
|
uwsgi_read_timeout 120s;
|
||||||
uwsgi_pass uwsgi;
|
uwsgi_pass uwsgi;
|
||||||
include /etc/nginx/uwsgi_params;
|
include /etc/nginx/uwsgi_params;
|
||||||
|
|||||||
Reference in New Issue
Block a user