Exercice: commit initial
This commit is contained in:
18
17.2_variable/myapache2/templates/vhost.conf.jj
Normal file
18
17.2_variable/myapache2/templates/vhost.conf.jj
Normal file
@@ -0,0 +1,18 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user