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

34 lines
943 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 }}
ErrorLog /services/web/logs/{{ DOMAIN }}.log
CustomLog /services/web/logs/{{ 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 }}>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
allow from all
Options +ExecCGI
</Directory>
{% if PHP_ENABLED == "yes" %}
<IfModule mod_fastcgi.c>
2019-07-31 00:07:24 +02:00
<FilesMatch "\.php$">
2019-07-30 23:34:41 +02:00
SetHandler "proxy:fcgi://127.0.0.1:{{ PHP_FPM_PORT }}/"
2019-07-31 00:07:24 +02:00
</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 %}