parent
8baa94e736
commit
905d6c7531
@ -75,7 +75,7 @@ nginx_http_template:
|
||||
location: /var/log/nginx/error.log
|
||||
level: warn
|
||||
root: /usr/share/nginx/html
|
||||
https_redirect: false
|
||||
#https_redirect: $host
|
||||
autoindex: false
|
||||
auth_basic: null
|
||||
auth_basic_user_file: null
|
||||
|
@ -142,7 +142,7 @@ server {
|
||||
root {{ item.value.servers[server].root }};
|
||||
{% endif %}
|
||||
{% if item.value.servers[server].https_redirect is defined and item.value.servers[server].https_redirect %}
|
||||
return 301 https://{% if item.value.servers[server].server_name == "_" %}$host{% else %}{{ item.value.servers[server].server_name }}{% endif %}$request_uri;
|
||||
return 301 https://{{ item.value.servers[server].https_redirect }}$request_uri;
|
||||
{% endif %}
|
||||
{% if item.value.servers[server].autoindex is defined and item.value.servers[server].autoindex %}
|
||||
autoindex on;
|
||||
|
Loading…
Reference in New Issue
Block a user