2
0
Files
SIB_Exercices/17.2_variable/myapache2/templates/vhost.conf.jj

18 lines
569 B
Plaintext

{% for vhost in apache_vhosts %}
<VirtualHost *:{{ http_port }}>
ServerName {{ vhost.servername }}
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 }}>
Require all granted
</Directory>
</VirtualHost>
{% endfor %}