mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Reopened: Domain URL configuration results in 404 #1694 #1062
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 @kingofthering on GitHub (Jun 29, 2021).
My problem #1694 is unfortunately not solved yet.
To make my setup easier, I have now installed docker locally on my Apache proxy.
I can start the docker container and have set all parameters as env variable.
I can set the domain via config and everything works. If I restart the conterer I get the same behavior as before in #1694 on restart of the container ... ressource not found.
When I set DOMAIN as env I get the same problem.
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: ORG_CREATION_USERS, ADMIN_TOKEN, SMTP_HOST, SMTP_FROM, SMTP_FROM_NAME, SMTP_USERNAME, SMTP_PASSWORD
@BlackDex commented on GitHub (Jun 29, 2021):
We need at least some logs stating the 404 from the vaultwarden logs and the Apache logs.
Also, the config.json is precedent and overrulles all env variables, so if you config something in there, and then restart, it should work, if not, then the config.json is faulty.
You also state that if you modify the domain in the config.json it works, so that kinda looks to me like something is wrong with an env variable which causes an issue further on.
Please rename the
config.jsonto something likeconfig.json.disabledconfigure everything via the-eordocker-compose.ymlfile, what ever you use.Could you also try to remove the trailing
/from theDOMAINvariable and see what happens.But we really need more detailed information, logs etc..
Also, enable
LOG_LEVEL=debugso that you will get more detailed information to see if there is something wrong there.@BlackDex commented on GitHub (Jun 30, 2021):
Also, i see you are using a sub-folder, so make sure you are using the correct config:
Apache in a sub-location (by ss89)@ https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examples@kingofthering commented on GitHub (Jul 2, 2021):
Hi,
the proxy subfolder configuration looks good, also proxy_wstunnel_module is loaded:
SSLProxyEngine on
<Location /bitwarden/>
ProxyPreserveHost On
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
ProxyPass http://localhost:5555/
ProxyPassReverse http://localhost:5555/
Dockered Vaultwarden is running on the apache localhost port 5555.
I have deleted the config.json file and restarted with:
Thx for your support!!!
Env
11 EXTENDED_LOGGING=true
12 LOG_LEVEL=debug
13 DOMAIN=https://tld.com/bitwarden/
I have tried it without trailing slash and nothing changes...
Vaultwarden log:
[/--------------------------------------------------------------------,
| Starting Vaultwarden |,
| Version 1.22.1 |,
|--------------------------------------------------------------------|,
| This is an unofficial Bitwarden implementation, DO NOT use the |,
| official channels to report bugs/features, regardless of client. |,
| Send usage/configuration questions or feature requests to: |,
| https://vaultwarden.discourse.group/ |,
| Report suspected bugs/issues in the software itself at: |,
| https://github.com/dani-garcia/vaultwarden/issues/new |,
--------------------------------------------------------------------/,
,
FO] No .env file found.,
,
[2021-07-01 21:18:48.425][routes][INFO] Routes loaded:,
[2021-07-01 21:18:48.460][routes][INFO] GET /bitwarden,
[2021-07-01 21:18:48.460][routes][INFO] GET /bitwarden/<p..> [10],
[2021-07-01 21:18:48.460][routes][INFO] GET /bitwarden/admin [1],
[2021-07-01 21:18:48.460][routes][INFO] GET /bitwarden/admin [2],
[2021-07-01 21:18:48.460][routes][INFO] POST /bitwarden/admin,
....
[2021-07-01 21:18:48.462][routes][INFO] POST /bitwarden/identity/connect/token,
[2021-07-01 21:18:48.462][routes][INFO] GET /bitwarden/notifications/hub,
[2021-07-01 21:18:48.462][routes][INFO] POST /bitwarden/notifications/hub/negotiate,
[2021-07-01 21:18:48.462][start][INFO] Rocket has launched from http://0.0.0.0:80,
[2021-07-01 21:18:49.179][request][INFO] GET /admin,
[2021-07-01 21:18:49.179][response][INFO] 404 Not Found,
[2021-07-01 21:19:02.051][request][INFO] GET /notifications/hub?access_token=xyz,
[2021-07-01 21:19:02.051][response][INFO] 404 Not Found,
[2021-07-01 21:19:47.987][request][INFO] GET /bitwarden/alive,
[2021-07-01 21:19:47.987][response][INFO] GET /bitwarden/alive (alive) => 200 OK,
[2021-07-01 21:20:23.091][request][INFO] GET /notifications/hub?access_token=xyz,
[2021-07-01 21:20:23.092][response][INFO] 404 Not Found,
[2021-07-01 21:20:48.130][request][INFO] GET /bitwarden/alive,
[2021-07-01 21:20:48.131][response][INFO] GET /bitwarden/alive (alive) => 200 OK,
Apache proxy logs:
xyz - - [01/Jul/2021:23:23:59 +0200] "GET /favicon.ico HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" CTRY: DE
xyz - - [01/Jul/2021:23:24:12 +0200] "GET /bitwarden/admin HTTP/1.1" 404 597 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0" CTRY: DE
@BlackDex commented on GitHub (Jul 2, 2021):
Your apache config doesn't match on the important parts with the one i mentioned. I'm missing the rewrite rule for one, which is only used for websockets but still.
And the most important one, I'm missing the sublocation in your proxypass config.