vhost-manager/src/templates/vhost-http.twig

34 lines
916 B
Twig
Raw Normal View History

2019-07-30 23:34:41 +02:00
{% block body %}
<VirtualHost 127.0.0.1:{{ PORT }}>
ServerName {{ DOMAIN }}
{% if DOMAIN_ALIASES is not empty %}
ServerAlias {{ DOMAIN_ALIASES }}
{% endif %}
DocumentRoot {{ DOCUMENT_ROOT }}
SuexecUserGroup {{ SYSTEM_USER_USERNAME }} {{ SYSTEM_USER_GROUP }}
2019-08-01 10:19:13 +02:00
ErrorLog {{ WEB_LOG_PATH }}/{{ DOMAIN }}.log
CustomLog {{ WEB_LOG_PATH }}/{{ DOMAIN }}.log combined
2019-07-31 00:11:31 +02:00
{% block force_https %}{% if WEB_HTTPS_FORCE == "yes" %}
2019-07-31 09:37:16 +02:00
Redirect permanent / https://{{ DOMAIN }}/
{% endif %}{% endblock %}
2019-07-30 23:34:41 +02:00
<Directory {{ DOCUMENT_ROOT }}>
2019-08-05 14:48:44 +02:00
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
allow from all
Options +ExecCGI
2019-07-30 23:34:41 +02:00
</Directory>
{% if PHP_ENABLED == "yes" %}
<IfModule mod_fastcgi.c>
2019-08-05 14:48:44 +02:00
<FilesMatch "\.php$">
SetHandler "proxy:fcgi://127.0.0.1:{{ PHP_FPM_PORT }}/"
</FilesMatch>
2019-07-30 23:34:41 +02:00
</IfModule>
{% endif %}
2019-07-31 00:04:37 +02:00
{% block extra %}{% endblock extra %}
2019-07-30 23:34:41 +02:00
</VirtualHost>
2019-07-31 00:04:37 +02:00
{% endblock body %}