0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-11-15 22:42:51 +01:00

Added Apache sub-dir updates for v1.29+

Deez 2023-11-09 16:22:13 -08:00
parent 2c217ca992
commit 33ec75c493

@ -568,7 +568,7 @@ Remember to enable `mod_proxy_wstunnel` and `mod_proxy_http`, for example with:
</details>
<details>
<summary>Apache in a sub-location (by ss89)</summary><br/>
<summary>Apache in a sub-location v1.29.0+ (by @agentdr8)</summary><br/>
Modify your docker start-up to include the sub-location.
```
@ -601,11 +601,13 @@ On some OS's you can use a2enmod, for example with: `a2enmod proxy_wstunnel` and
<Location /$sublocation/> #adjust here if necessary
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /notifications/hub(.*) ws://<SERVER>:3012/$1 [P,L]
ProxyPass http://<SERVER>:80/$sublocation/
RewriteRule /notifications/hub(.*) ws://<SERVER>:<SERVER_PORT>/$sublocation/notifications/hub/$1 [P,L]
ProxyPass http://<SERVER>:<SERVER_PORT>/$sublocation
ProxyPreserveHost On
ProxyPreserveHost Off
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
RequestHeader setifempty Connection "Upgrade"
RequestHeader setifempty Upgrade "websocket"
</Location>
</VirtualHost>
```