mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-22 09:49:20 -07:00
Simpler ProxyPass for Apache 2.4.47 or later
@@ -524,6 +524,26 @@ On some OS's you can use a2enmod, for example with: `a2enmod proxy_wstunnel` and
|
|||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Apache 2.4.47 (or later) in a sub-location (by <a href="https://github.com/NoseyNick" target="_blank">@NoseyNick</a>)</summary><br/>
|
||||||
|
|
||||||
|
The regular `mod_proxy` now supports upgrading to websockets, with `upgrade=websocket`, no need for `mod_proxy_wstunnel`.
|
||||||
|
|
||||||
|
Copy the instructions above, except use the much simpler...
|
||||||
|
|
||||||
|
```apache
|
||||||
|
<VirtualHost *:443>
|
||||||
|
[ blah blah ]
|
||||||
|
<Location /$sublocation/> #adjust here if necessary
|
||||||
|
ProxyPass http://$server:$port/$sublocation/ upgrade=websocket
|
||||||
|
ProxyPreserveHost On
|
||||||
|
ProxyRequests Off # ... is the default, but as a safety-net
|
||||||
|
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
|
||||||
|
</Location>
|
||||||
|
</VirtualHost>
|
||||||
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Traefik v1 (docker-compose example)</summary><br/>
|
<summary>Traefik v1 (docker-compose example)</summary><br/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user