We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33f72ee commit 709e52eCopy full SHA for 709e52e
templates/http/default.conf.j2
@@ -39,10 +39,12 @@ server {
39
{% endfor %}
40
{% endif %}
41
{% if item.value.web_server is defined %}
42
- location / {
43
- root {{ item.value.web_server.html_file_location }};
44
- index {{ item.value.web_server.html_file_name }};
+{% for location in item.value.web_server.locations %}
+ location {{ item.value.web_server.locations[location].location }} {
+ root {{ item.value.web_server.locations[location].html_file_location }};
45
+ index {{ item.value.web_server.locations[location].html_file_name }};
46
}
47
+{% endfor %}
48
{% if item.value.web_server.http_demo_conf %}
49
sub_filter_once off;
50
sub_filter 'server_hostname' '$hostname';
0 commit comments