21 lines
557 B
Django/Jinja
21 lines
557 B
Django/Jinja
<VirtualHost *:80>
|
|
ServerName {{ server_name }}
|
|
Redirect permanent / https://{{ server_name }}/
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName {{ server_name }}
|
|
SSLEngine on
|
|
SSLCertificateFile {{ ssl_cert }}
|
|
SSLCertificateKeyFile {{ ssl_key }}
|
|
|
|
DocumentRoot {{ document_root }}
|
|
<Directory {{ document_root }}>
|
|
Options Indexes FollowSymLinks
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
{% if directory_index is defined %}
|
|
DirectoryIndex {{ directory_index }}
|
|
{% endif %}
|
|
</VirtualHost>
|