mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-10-19 03:24:04 +07:00
Fix redirect_ssl cannot be a default_site
This commit is contained in:
1 parent
d8f6088362
commit
93b90c748f
1 file changed
+2
-2
@@ -209,10 +209,10 @@ server {
|
||||
{% if 'https' in __proto %}
|
||||
server {
|
||||
{% 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 %}
|
||||
{% 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 %}
|
||||
{{ ssl(__ssl_name) }}
|
||||
{% if item.ssl_template is not defined or item.ssl_template != false %}
|
||||
|
||||
Reference in new issue
Block a user