1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-07-01 06:15:45 +00:00

feat: define basic auth for virtual path

This commit is contained in:
jmformenti
2024-02-10 16:24:00 +01:00
committed by Nicolas Duchon
parent df890def7c
commit fa23c11edb
2 changed files with 7 additions and 1 deletions

View File

@ -479,6 +479,9 @@ docker run -d -p 80:80 -p 443:443 \
You'll need apache2-utils on the machine where you plan to create the htpasswd file. Follow these [instructions](http://httpd.apache.org/docs/2.2/programs/htpasswd.html)
If you want to define basic authentication for a `VIRTUAL_PATH`, you have to create a file named as /etc/ngingx/htpasswd/${VIRTUAL_HOST}_${VIRTUAL_PATH_SHA1}
(where $VIRTUAL_PATH_SHA1 is the SHA1 hash for the virtual path, you can use any SHA1 online generator to calculate it).
### Upstream (Backend) Server HTTP Load Balancing Support
> **Warning**