Update proxy_host.conf by replace $host:$server with $http_host

This commit is contained in:
Xialijun 2023-07-31 22:55:14 +08:00 committed by GitHub
parent f00fe275ca
commit fb1e4bd46c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ proxy_http_version 1.1;
{% if allow_websocket_upgrade == 1 or allow_websocket_upgrade == true %}
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host:$server_port;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
{% endif %}