Fix redirect_ssl cannot be a default_site

py3
Emilien Mantel 2020-02-04 11:31:21 +01:00
parent d8f6088362
commit 93b90c748f
1 changed files with 2 additions and 2 deletions

View File

@ -209,10 +209,10 @@ server {
{% if 'https' in __proto %} {% if 'https' in __proto %}
server { server {
{% for port in __listen_ssl %} {% for port in __listen_ssl %}
listen {{ port }}{% if nginx_default_site_ssl == __main_name %} default_server{% endif %} ssl{% if __http2 %} http2{% endif %}; listen {{ port }} ssl{% if __http2 %} http2{% endif %};
{% endfor %} {% endfor %}
{% for port in __listen_proxy_protocol_ssl %} {% for port in __listen_proxy_protocol_ssl %}
listen {{ port }}{% if nginx_default_site_ssl == __main_name %} default_server{% endif %} ssl{% if __http2 %} http2{% endif %} proxy_protocol; listen {{ port }} ssl{% if __http2 %} http2{% endif %} proxy_protocol;
{% endfor %} {% endfor %}
{{ ssl(__ssl_name) }} {{ ssl(__ssl_name) }}
{% if item.ssl_template is not defined or item.ssl_template != false %} {% if item.ssl_template is not defined or item.ssl_template != false %}