File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,7 @@ nginx_http_template:
332
332
port : 8081
333
333
server_name : localhost
334
334
error_page : /usr/share/nginx/html
335
+ root : /usr/share/nginx/html
335
336
https_redirect : false
336
337
autoindex : false
337
338
ssl :
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ nginx_http_template:
163
163
port : 8081
164
164
server_name : localhost
165
165
error_page : /usr/share/nginx/html
166
+ root : /usr/share/nginx/html
166
167
https_redirect : false
167
168
autoindex : false
168
169
ssl :
Original file line number Diff line number Diff line change @@ -56,13 +56,15 @@ server {
56
56
listen {{ item.value.port }};
57
57
{% endif %}
58
58
server_name {{ item.value.server_name }};
59
- {% if item .value .autoindex is defined and item .value .autoindex %}
60
- autoindex on ;
59
+ {% if item .value .root is defined and item .value .root %}
60
+ root {{ item.value.root }} ;
61
61
{% endif %}
62
62
{% if item .value .https_redirect is defined and item .value .https_redirect %}
63
63
return 301 https://{{ item.value.server_name }}$request_uri;
64
- {% endif %}
65
-
64
+ {% endif %}
65
+ {% if item .value .autoindex is defined and item .value .autoindex %}
66
+ autoindex on;
67
+ {% endif %}
66
68
{% if item .value .reverse_proxy is defined %}
67
69
{% for location in item .value .reverse_proxy .locations %}
68
70
location {{ item.value.reverse_proxy.locations[location] .location }} {
Original file line number Diff line number Diff line change 9
9
nginx_unit_enable : true
10
10
nginx_unit_modules :
11
11
- unit-php
12
- - unit-perl
You can’t perform that action at this time.
0 commit comments