Allow to generate custom locations in web_server mode
This commit is contained in:
parent
33f72ee8f2
commit
709e52eb0b
@ -39,10 +39,12 @@ server {
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.value.web_server is defined %}
|
{% if item.value.web_server is defined %}
|
||||||
location / {
|
{% for location in item.value.web_server.locations %}
|
||||||
root {{ item.value.web_server.html_file_location }};
|
location {{ item.value.web_server.locations[location].location }} {
|
||||||
index {{ item.value.web_server.html_file_name }};
|
root {{ item.value.web_server.locations[location].html_file_location }};
|
||||||
|
index {{ item.value.web_server.locations[location].html_file_name }};
|
||||||
}
|
}
|
||||||
|
{% endfor %}
|
||||||
{% if item.value.web_server.http_demo_conf %}
|
{% if item.value.web_server.http_demo_conf %}
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
sub_filter 'server_hostname' '$hostname';
|
sub_filter 'server_hostname' '$hostname';
|
||||||
|
Loading…
Reference in New Issue
Block a user