Skip to content

Commit a0edbd6

Browse files
committed
fix(vaultwarden): only match starting with /admin
1 parent 79a256c commit a0edbd6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

vaultwarden.subdomain.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ server {
4545

4646
}
4747

48-
location ~ (/vaultwarden)?/admin {
48+
location ~ ^(/vaultwarden)?/admin {
4949
# enable the next two lines for http auth
5050
#auth_basic "Restricted";
5151
#auth_basic_user_file /config/nginx/.htpasswd;

vaultwarden.subfolder.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ location ^~ /vaultwarden/ {
3131

3232
}
3333

34-
location ~ (/vaultwarden)?/admin {
34+
location ~ ^(/vaultwarden)?/admin {
3535
# enable the next two lines for http auth
3636
#auth_basic "Restricted";
3737
#auth_basic_user_file /config/nginx/.htpasswd;

0 commit comments

Comments
 (0)