use http_host insteda of server_name

This commit is contained in:
Ondrej Kinovic 2017-09-20 16:56:12 +02:00
parent bdc52d3729
commit c8fa7b9054
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ http {
location / {
proxy_pass http://netbox:8001;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
add_header P3P 'CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"';