diff --git a/roles/captive-portal/templates/001-captive-portal.conf b/roles/captive-portal/templates/001-captive-portal.conf index 2a0e44311..7c77e8726 100644 --- a/roles/captive-portal/templates/001-captive-portal.conf +++ b/roles/captive-portal/templates/001-captive-portal.conf @@ -1,3 +1,13 @@ + + ErrorLog /var/log/apache2/error.log + CustomLog /var/log/apache2/access.log combined + + Options Indexes FollowSymLinks + AllowOverride None + Require all granted + + + # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating diff --git a/roles/httpd/templates/010-iiab.conf.j2 b/roles/httpd/templates/010-iiab.conf.j2 index 637aba9e3..fed0b0210 100755 --- a/roles/httpd/templates/010-iiab.conf.j2 +++ b/roles/httpd/templates/010-iiab.conf.j2 @@ -177,7 +177,7 @@ DocumentRoot "{{ doc_root }}" ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined ServerName {{ iiab_hostname }} - ServerAlias * + ServerAlias {{ iiab_hostname }}.{{ iiab_domain }} Options Indexes FollowSymLinks AllowOverride None