mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Websocket connections not working with recommended apache2 proxy configuration #1894
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SoraMakes on GitHub (Apr 11, 2024).
Subject of the issue
When deploying vaultwarden as docker container and using apache2 as reverseproxy with the configuration recommended here i get NS_ERROR_WEBSOCKET_CONNECTION_REFUSED on Firefox. It works fine when accessing it via ssh proxy and then using
http://localhost:50854.Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden:
Clients used: web vault (Firefox)
Reverse proxy and version: apache2 (2.4.38-3+deb10u10)
the proxy modules ( proxy_module (shared), proxy_http_module (shared), proxy_wstunnel_module (shared)) are loaded
Steps to reproduce
Expected behaviour
Getting 101 as response on the wss:// requests
Actual behaviour
Getting 404 as response on the wss:// requests
Troubleshooting data
relevant vaultwarden log:
relevant apache2 log
Workaround
As a workaround i added the following lines to my apache VirtualHost conf