Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use bitwarden behind reverse proxy using a subfolder #277

Closed
baku104788 opened this issue May 5, 2018 · 8 comments
Closed

Unable to use bitwarden behind reverse proxy using a subfolder #277

baku104788 opened this issue May 5, 2018 · 8 comments

Comments

@baku104788
Copy link

Despite updating all config variables to utilize a subfolder for bitwarden install the system will not accept it. Nothing works unless you take over the root of the http server which is not desired. my server is used for a few uses and I need to keep each item in its own place / I dont have multiple IPs to use subdomains for everything.

@kspearrin
Copy link
Member

Sorry, but I do not understand the issue. What subfolder? I don't understand what HTTP server you are taking over root of. More details are needed to understand this issue.

@baku104788
Copy link
Author

baku104788 commented May 5, 2018 via email

@kspearrin
Copy link
Member

Yes, running Bitwarden under a domain subfolder is not a supported scenario. None of the installer paths are set up for that. It needs to run under a host, as a subdomain or additional port.

@baku104788
Copy link
Author

baku104788 commented May 6, 2018 via email

@kspearrin
Copy link
Member

Premium can take a while to propagate to all of your apps. All licenses have a 7 day trial so you will need to generate a new one after your trial ends.

@mustaphazorgati
Copy link

mustaphazorgati commented Feb 20, 2021

Yes, running Bitwarden under a domain subfolder is not a supported scenario. None of the installer paths are set up for that. It needs to run under a host, as a subdomain or additional port.

@kspearrin I am a little confused about the current status. Is it still not supported? Will it be supported someday?

@kcris
Copy link

kcris commented Feb 20, 2021

I can run it in a subpath. My nginx proxies all domain.tld/vault requests to my docker container. I followed the instructions here
https://github.com/dani-garcia/bitwarden_rs/wiki/Proxy-examples - section Nginx with sub-path (by BlackDex)

I start the bitwarden_rs docker container like this (I just had to pass the DOMAIN env variable):

sudo docker run -d --name bitwarden -v /srv/docker-containers/bitwardenrs/data/:/data/ -p 19080:80 -p 3012:3012 -e DOMAIN=https://domain.tld/vault/ bitwardenrs/server:latest

@baku104788
Copy link
Author

Yes, running Bitwarden under a domain subfolder is not a supported scenario. None of the installer paths are set up for that. It needs to run under a host, as a subdomain or additional port.

@kspearrin I am a little confused about the current status. Is it still not supported? Will it be supported someday?

Another approach is to put bitwarden onto its own IP address and then in your main http hosting (I use apache) have it redirect the subdomain of your choice back to the bitwarden instance as desired. For this I am using an HTTPS site in apache (the outward facing host) and letting it do a reverse proxy to the http instance of bitwarden on the local machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants