[GH-ISSUE #2288] Using NGINX reverse proxy with subpath gives "404: Not Found" #1215

Closed
opened 2026-03-03 02:07:11 +03:00 by kerem · 0 comments
Owner

Originally created by @g4njawizard on GitHub (Feb 4, 2022).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2288

Hi everyone,

I try to setup Vaultwarden on my unRAID as container using NGINX Reverse Proxy on my OPNsense Firewall (Different machine).

It works with my current proxy setting, when I use "/" as base path. But when I change my path to "/bitwarden/asgard" or something else and change the domain on the container itself to look like: -e 'DOMAIN'='http://localhost/bitwarden/asgard' It doesn't work. I get the 404.
I can leave the Domain on the Container with "http://localhost/bitwarden/asgard" and change the Proxy config to "/" again, it works ...
Seems like the base path inside the container is not working? When I look at the read-only config in admin section it looks like:
Domain Origin: http://localhost
Domain Path: Default: /bitwarden/asgard
I used this config as an example: https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examples

Any idea why subpath is not working?

Originally created by @g4njawizard on GitHub (Feb 4, 2022). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2288 Hi everyone, I try to setup Vaultwarden on my unRAID as container using NGINX Reverse Proxy on my OPNsense Firewall (Different machine). It works with my current proxy setting, when I use "/" as base path. But when I change my path to "/bitwarden/asgard" or something else and change the domain on the container itself to look like: -e 'DOMAIN'='http://localhost/bitwarden/asgard' It doesn't work. I get the 404. I can leave the Domain on the Container with "http://localhost/bitwarden/asgard" and change the Proxy config to "/" again, it works ... Seems like the base path inside the container is not working? When I look at the read-only config in admin section it looks like: Domain Origin: http://localhost Domain Path: Default: /bitwarden/asgard I used this config as an example: https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examples Any idea why subpath is not working?
kerem closed this issue 2026-03-03 02:07:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#1215
No description provided.