From 79cc4440a7db67bad56320ebdc95813c6f3e9eae Mon Sep 17 00:00:00 2001 From: Wang Jiaxiang Date: Tue, 14 Jul 2020 20:08:06 +0800 Subject: [PATCH] Add possible solution to solve trailing slash "/" issue --- Using-an-alternate-base-dir.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Using-an-alternate-base-dir.md b/Using-an-alternate-base-dir.md index 153eeda..52427c6 100644 --- a/Using-an-alternate-base-dir.md +++ b/Using-an-alternate-base-dir.md @@ -23,6 +23,17 @@ Simply configure your domain URL to include the base dir. For example, suppose y 4. Restart bitwarden_rs. 5. You should now be able to access the web vault at `https://bitwarden.example.com/base-dir/` (note the trailing slash). For reasons not entirely clear, you'll probably run into issues if you use `https://bitwarden.example.com/base-dir` (without the trailing slash). 6. Configure your apps or browser extensions to use `https://bitwarden.example.com/base-dir`. If you add a trailing slash, the apps and extensions will automatically remove it before saving. +7. Note over **5**. The trailing slash `/` issue could be solved by appending `/` after the route location string. For example, in nginx. + +``` + location /my-base-path { + # This config would cause `/` issue + } + + location /my-base-path-2/ { + # This config works perfectly + } +``` ## Reverse proxying