mirror of
https://github.com/thib8956/nginx-proxy
synced 2024-12-26 12:36:31 +00:00
Document custom config for multi-host VIRTUAL_HOST
This commit is contained in:
parent
c4b3955ab9
commit
927e583f6a
@ -147,3 +147,8 @@ For example, if you have a virtual host named `app.example.com`, you could provi
|
||||
|
||||
$ docker run -d -p 80:80 -p 443:443 -v /path/to/vhost.d:/etc/nginx/vhost.d:ro -v /var/run/docker.sock:/tmp/docker.sock jwilder/nginx-proxy
|
||||
$ { echo 'server_tokens off;'; echo 'client_max_body_size 100m;'; } > /path/to/vhost.d/app.example.com
|
||||
|
||||
If you are using multiple hostnames for a single container (e.g. `VIRTUAL_HOST=example.com,www.example.com`), the virtual host configuration file must exist for each hostname. If you would like to use the same configuration for multiple virtual host names, you can use a symlink:
|
||||
|
||||
$ { echo 'server_tokens off;'; echo 'client_max_body_size 100m;'; } > /path/to/vhost.d/www.example.com
|
||||
$ ln -s www.example.com /path/to/vhost.d/example.com
|
||||
|
Loading…
Reference in New Issue
Block a user