File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,15 @@ docker run -d \
3333- ` FORWARD_PORT ` (default: ` 80 ` ): Port of the ** source** container that should be forwarded
3434> The container does not need any volumes to be mounted! Nonetheless you will find all interesting files at ` /etc/nginx/* ` .
3535
36+ ## Multiple Users
37+ Multiple Users are possible by separating the users by newline. To pass the newlines properly you need to use Shell Quoting (like ` $'foo\nbar' ` ):
38+ ```
39+ docker run -d --link web:web --name auth \
40+ -e HTPASSWD=$'foo:$apr1$odHl5EJN$KbxMfo86Qdve2FH4owePn.\ntest:$apr1$LKkW8P4Y$P1X/r2YyaexhVL1LzZAQm.' \
41+ beevelop/nginx-basic-auth
42+ ```
43+ results in 2 users (` foo:bar ` and ` test:test ` ).
44+
3645## Troubleshooting
3746```
3847nginx: [emerg] host not found in upstream "web" in /etc/nginx/conf.d/auth.conf:80
You can’t perform that action at this time.
0 commit comments