mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
Add ProxyPreserveHost on
parent
ecc7647280
commit
b2698dbee5
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ With SSL:
|
||||||
SSLCertificateKeyFile /path/to/ssl/key/key
|
SSLCertificateKeyFile /path/to/ssl/key/key
|
||||||
# Protocol 'h2' is only supported on Apache 2.4.17 or newer.
|
# Protocol 'h2' is only supported on Apache 2.4.17 or newer.
|
||||||
Protocols h2 http/1.1
|
Protocols h2 http/1.1
|
||||||
|
ProxyPreserveHost on
|
||||||
ProxyPass / http://localhost:3001/
|
ProxyPass / http://localhost:3001/
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteCond %{HTTP:Upgrade} =websocket
|
RewriteCond %{HTTP:Upgrade} =websocket
|
||||||
|
@ -111,7 +111,7 @@ Without SSL:
|
||||||
```apache
|
```apache
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName sub.domain.com
|
ServerName sub.domain.com
|
||||||
|
ProxyPreserveHost on
|
||||||
ProxyPass / http://localhost:3001/
|
ProxyPass / http://localhost:3001/
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteCond %{HTTP:Upgrade} websocket [NC]
|
RewriteCond %{HTTP:Upgrade} websocket [NC]
|
||||||
|
|
Loading…
Reference in a new issue