Using NGINX reverse proxy with subpath gives "404: Not Found" #1210

Closed
opened 2026-02-05 00:17:10 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @g4njawizard on GitHub (Feb 4, 2022).

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). 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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1210