update README.md: add workaround for #1136
This commit is contained in:
parent
9521593cbc
commit
1cc6046b18
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -396,11 +396,21 @@ If you are using multiple hostnames for a single container (e.g. `VIRTUAL_HOST=e
|
|||
$ { echo 'proxy_cache my-cache;'; echo 'proxy_cache_valid 200 302 60m;'; echo 'proxy_cache_valid 404 1m;' } > /path/to/vhost.d/app.example.com_location
|
||||
$ ln -s /path/to/vhost.d/www.example.com /path/to/vhost.d/example.com
|
||||
|
||||
Be aware that using a per-VIRTUAL_HOST location configuration, the default location configuration will be overridden, resulting in HSTS being disabled. To re-enable HSTS, add the following line to your newly created per-VIRTUAL_HOST location file:
|
||||
|
||||
add_header Strict-Transport-Security "max-age=31536000" always;
|
||||
|
||||
|
||||
#### Per-VIRTUAL_HOST location default configuration
|
||||
|
||||
If you want most of your virtual hosts to use a default single `location` block configuration and then override on a few specific ones, add those settings to the `/etc/nginx/vhost.d/default_location` file. This file
|
||||
will be used on any virtual host which does not have a `/etc/nginx/vhost.d/{VIRTUAL_HOST}_location` file associated with it.
|
||||
|
||||
Be aware that using a default_location configuration, the default location configuration will be overridden, resulting in HSTS being disabled. To re-enable HSTS, add the following line to your newly created default_location file:
|
||||
|
||||
add_header Strict-Transport-Security "max-age=31536000" always;
|
||||
|
||||
|
||||
### Contributing
|
||||
|
||||
Before submitting pull requests or issues, please check github to make sure an existing issue or pull request is not already open.
|
||||
|
|
|
|||
Loading…
Reference in a new issue