2
0
Files

29 lines
849 B
Plaintext

{% for vhost in apache_vhosts %}
<VirtualHost *:{{ http_port }}>
ServerName {{ vhost.servername|lower }}
ServerAlias {{ vhost.serveralias }}
DocumentRoot {{ vhost.documentroot }}
CustomLog {{ vhost.accesslog }} combined
ErrorLog {{ vhost.errorlog }}
<Directory />
Options none
Allowoverride none
Require all denied
</Directory>
<Directory {{ vhost.documentroot }}>
Options {{ vhost.documentrootoptions|default( "none" ) }}
Require all granted
</Directory>
Alias /private /usr/share/doc
<Directory /usr/share/doc>
Options indexes
AuthName "stop"
AuthType Basic
AuthUserFile {{ apache_conf_dir }}/passwd
require valid-user
</Directory>
</VirtualHost>
{% endfor %}