31 lines
1.2 KiB
Django/Jinja
31 lines
1.2 KiB
Django/Jinja
<IfModule mod_ssl.c>
|
|
<VirtualHost _default_:443>
|
|
ServerName {{ domainname }}
|
|
ServerAdmin webmaster@{{ domainname }}
|
|
|
|
DocumentRoot "{{ docroot }}"
|
|
<Directory "{{ docroot }}">
|
|
Options Indexes MultiViews Includes FollowSymLinks
|
|
AddOutputFilter Includes html
|
|
AllowOverride All
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/{{ domainname }}.error.log
|
|
CustomLog ${APACHE_LOG_DIR}/{{ domainname }}.access.log combined
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/ssl/certs/{{ domainname }}.pem
|
|
SSLCertificateKeyFile /etc/ssl/private/{{ domainname }}.key
|
|
|
|
<FilesMatch "\.(cgi|shtml|phtml|php)$">
|
|
SSLOptions +StdEnvVars
|
|
</FilesMatch>
|
|
<Directory /usr/lib/cgi-bin>
|
|
SSLOptions +StdEnvVars
|
|
</Directory>
|
|
IncludeOptional /etc/apache2/conf-available/{{ domainname }}-ssl-optionalDirectives.conf
|
|
</VirtualHost>
|
|
</IfModule>
|