So working knowledge on this is limited, but in general I’d say the problem is this. Bitwarden is expecting traffic on those ports. I’d say the solution is that you need certain traffic to be forwarded to those ports. Can your Apache installation do that? Alternatively, there might be a way to change where Bitwarden is expecting traffic.
In my setup, Bitwarden is listening locally on port 4480 with SSL turned off. I configured a virtual host for https://bitwarden.mydomain.com which sends all requests to Bitwarden like this:
SSLProxyEngine On
RequestHeader set Front-End-Https "On"
ProxyPreserveHost On
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyPass / http://127.0.0.1:4480/
ProxyPassReverse / http://127.0.0.1:4480/
Certificates for this virtual host are generated separately, not by Bitwarden.
Thanks for the suggestion.
I’m a bit surpsrised there is no formal doc on how to do thisa as I’m sure that i can’t be the only one that needs to run a docker app in a standard lamp install.
Maybe this is a question for the docker community.