diff --git a/etc/nginx/coolwsd.conf b/etc/nginx/coolwsd.conf index 6d0814ea516d..0e60c3f5f01a 100644 --- a/etc/nginx/coolwsd.conf +++ b/etc/nginx/coolwsd.conf @@ -1,19 +1,19 @@ # static files location ^~ /browser { proxy_pass http://localhost:9980; - proxy_set_header Host $http_host; + proxy_set_header Host $host; } # WOPI discovery URL location ^~ /hosting/discovery { proxy_pass http://localhost:9980; - proxy_set_header Host $http_host; + proxy_set_header Host $host; } # Capabilities location ^~ /hosting/capabilities { proxy_pass http://localhost:9980; - proxy_set_header Host $http_host; + proxy_set_header Host $host; } # main websocket @@ -21,7 +21,7 @@ proxy_pass http://localhost:9980; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_read_timeout 36000s; } @@ -29,7 +29,7 @@ # we accept 'lool' to be backward compatible location ~ ^/(c|l)ool { proxy_pass http://localhost:9980; - proxy_set_header Host $http_host; + proxy_set_header Host $host; } # Admin Console websocket @@ -37,6 +37,6 @@ proxy_pass http://localhost:9980; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_read_timeout 36000s; }