Add ProxyPreserveHost on

Louis Lam 2023-12-11 10:25:44 +08:00
parent ecc7647280
commit b2698dbee5

@ -97,7 +97,7 @@ With SSL:
SSLCertificateKeyFile /path/to/ssl/key/key
# Protocol 'h2' is only supported on Apache 2.4.17 or newer.
Protocols h2 http/1.1
ProxyPreserveHost on
ProxyPass / http://localhost:3001/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} =websocket
@ -111,7 +111,7 @@ Without SSL:
```apache
<VirtualHost *:80>
ServerName sub.domain.com
ProxyPreserveHost on
ProxyPass / http://localhost:3001/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]