Merge branch 'master' of https://github.com/HanXHX/ansible-nginx
Conflicts: tasks/vhost.ymlpull/14/head
commit
1071881ac2
|
@ -10,6 +10,7 @@ Common
|
||||||
|
|
||||||
- `name`: (M) Domain or list of domain used.
|
- `name`: (M) Domain or list of domain used.
|
||||||
- `template`: (D) template used to create vhost. Optional if you set `delete` to true or using `redirect_tor`.
|
- `template`: (D) template used to create vhost. Optional if you set `delete` to true or using `redirect_tor`.
|
||||||
|
- `filename`: (O) Specify filename in /etc/nginx/sites-*. Do NOT specify default (reserved keyword).
|
||||||
- `enable`: (O) Enable the vhost (default is true)
|
- `enable`: (O) Enable the vhost (default is true)
|
||||||
- `delete`: (O) Delete the vhost (default is false)
|
- `delete`: (O) Delete the vhost (default is false)
|
||||||
- `redirect_from`: (O) Domain list to redirect to the first `name`. You can use this key to redirect non-www to www
|
- `redirect_from`: (O) Domain list to redirect to the first `name`. You can use this key to redirect non-www to www
|
||||||
|
|
|
@ -119,6 +119,7 @@
|
||||||
- 'test-alias.local'
|
- 'test-alias.local'
|
||||||
- 'test2-alias.local'
|
- 'test2-alias.local'
|
||||||
template: '_base'
|
template: '_base'
|
||||||
|
filename : 'first-test'
|
||||||
override_try_files: '$uri $uri index.htm index.html'
|
override_try_files: '$uri $uri index.htm index.html'
|
||||||
manage_local_content: false
|
manage_local_content: false
|
||||||
more:
|
more:
|
||||||
|
|
Loading…
Reference in New Issue