Fixes on apache2 backend

This commit is contained in:
Marc 2014-10-17 15:24:41 +00:00
parent e289da7cb5
commit d72c3da485
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class Apache2Backend(ServiceController):
apache_conf = Template(textwrap.dedent("""\ apache_conf = Template(textwrap.dedent("""\
# {{ banner }} # {{ banner }}
<VirtualHost {{ id }}:{{ site.port }}> <VirtualHost {{ ip }}:{{ site.port }}>
ServerName {{ site.domains.all|first }}\ ServerName {{ site.domains.all|first }}\
{% if site.domains.all|slice:"1:" %} {% if site.domains.all|slice:"1:" %}
ServerAlias {{ site.domains.all|slice:"1:"|join:' ' }}{% endif %} ServerAlias {{ site.domains.all|slice:"1:"|join:' ' }}{% endif %}