summaryrefslogtreecommitdiffstats
path: root/roles/httpd/templates/vhost.conf
blob: 21172c936758ce9147900e85b21d785a8778e331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<VirtualHost *:80>
        {% if website_password is defined %}
        <Location />

            AuthType Basic
            AuthName "Restricted access, contact OSAS for password"
            AuthUserFile /etc/httpd/{{ website_url }}.htpasswd
            Require valid-user
        </Location>
        {% endif %}

        <Directory "{{ document_root }}">
                AllowOverride All
        </Directory>

        ServerName {{ website_url }}
        DocumentRoot {{ document_root }}
        Include /etc/httpd/conf.d/{{ website_url}}.conf.d/*conf
</VirtualHost>