Add "more" info on vhost
parent
ed5b7bf2cf
commit
9da1673293
|
@ -55,8 +55,9 @@ Socket:
|
||||||
- `template`: (M) template used to create vhost
|
- `template`: (M) template used to create vhost
|
||||||
- `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
|
||||||
- `location`: Add new custom locations (it does not overwrite!)
|
- `location`: (O) Add new custom locations (it does not overwrite!)
|
||||||
|
- `more`: (O) Add more custom infos.
|
||||||
|
|
||||||
(O) : Optional
|
(O) : Optional
|
||||||
(M) : Mandatory
|
(M) : Mandatory
|
||||||
|
|
|
@ -22,6 +22,12 @@ server {
|
||||||
index {{ item.index | default('index.html index.htm') }};
|
index {{ item.index | default('index.html index.htm') }};
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% if item.more is defined and item.more is iterable %}
|
||||||
|
{% for line in item.more %}
|
||||||
|
{{ item.more }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
{% block template_try_files %}
|
{% block template_try_files %}
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
- 'test-alias.local'
|
- 'test-alias.local'
|
||||||
- 'test2-alias.local'
|
- 'test2-alias.local'
|
||||||
template: '_base'
|
template: '_base'
|
||||||
|
more:
|
||||||
|
- 'etag off;'
|
||||||
location:
|
location:
|
||||||
'/test':
|
'/test':
|
||||||
- 'return 403;'
|
- 'return 403;'
|
||||||
|
|
Loading…
Reference in New Issue