vhost redirect_from accepts string

pull/27/head
Emilien Mantel 2016-11-02 14:23:55 +01:00
parent 0bda544a2f
commit e08401acf8
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ server {
{% for port in __listen %} {% for port in __listen %}
listen {{ port }}; listen {{ port }};
{% endfor %} {% endfor %}
server_name {{ item.redirect_from | join(' ') }}; server_name {% if item.redirect_from is string %}{{ item.redirect_from }}{% else %}{{ item.redirect_from | join(' ') }}{% endif %};
return 301 $scheme://{{ __main_name }}$request_uri; return 301 $scheme://{{ __main_name }}$request_uri;
} }
{% endif %} {% endif %}