2
0
Files
SIB_Exercices/20_conditions/myapache4/templates/vhost.conf.jj

24 lines
780 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>
{% if use_php %}
<FilesMatch \.php$>
SetHandler proxy:fcgi://localhost:9000
</FilesMatch>
{% endif %}
<Directory {{ vhost.documentroot }}>
Options {{ vhost.documentrootoptions|default( "none" ) }}
Require all granted
</Directory>
</VirtualHost>
{% endfor %}