initial commit

This commit is contained in:
2020-09-22 15:42:05 +02:00
commit c4efc2c331
17 changed files with 290 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{% 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 %}