Skip to content
This repository was archived by the owner on Nov 5, 2022. It is now read-only.

Commit 44a5322

Browse files
committed
Merge pull request nginx-proxy#142 from schmunk42/patch-1
show command on multiple lines, increased readability
2 parents 1e56a0e + ce3f1fa commit 44a5322

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ a 503.
111111
In order to be able to securize your virtual host, you have to create a file named as its equivalent VIRTUAL_HOST variable on directory
112112
/etc/nginx/htpasswd/$VIRTUAL_HOST
113113

114-
$ docker run -d -p 80:80 -p 443:443 -v /path/to/htpasswd:/etc/nginx/htpasswd -v /path/to/certs:/etc/nginx/certs -v /var/run/docker.sock:/tmp/docker.sock jwilder/nginx-proxy
114+
```
115+
$ docker run -d -p 80:80 -p 443:443 \
116+
-v /path/to/htpasswd:/etc/nginx/htpasswd \
117+
-v /path/to/certs:/etc/nginx/certs \
118+
-v /var/run/docker.sock:/tmp/docker.sock \
119+
jwilder/nginx-proxy
120+
```
115121

116122
You'll need apache2-utils on the machine you plan to create de htpasswd file. Follow these [instructions](http://httpd.apache.org/docs/2.2/programs/htpasswd.html)
117123

0 commit comments

Comments
 (0)