34 lines
990 B
Plaintext
34 lines
990 B
Plaintext
|
# Configuration for {{ dokuwiki_url }}
|
||
|
# vim:ft=apache:
|
||
|
|
||
|
# Accept connections from non-SNI clients
|
||
|
SSLStrictSNIVHostCheck off
|
||
|
|
||
|
# Website configuration
|
||
|
<VirtualHost *:80>
|
||
|
ServerName {{ dokuwiki_url }}
|
||
|
Redirect permanent / https://{{ dokuwiki_url }}
|
||
|
</VirtualHost>
|
||
|
<VirtualHost *:443>
|
||
|
SSLEngine on
|
||
|
SSLCertificateFile /etc/pki/cert/crt/{{ dokuwiki_url }}.crt
|
||
|
SSLCertificateKeyFile /etc/pki/cert/private/{{ dokuwiki_url }}.key
|
||
|
SSLCertificateChainFile /etc/pki/cert/crt/{{ dokuwiki_url}}-fullchain.crt
|
||
|
<FilesMatch "\.(cgi|shtml|phtml|php)$">\
|
||
|
SSLOptions +StdEnvVars
|
||
|
</FilesMatch>
|
||
|
<Directory /usr/lib/cgi-bin>
|
||
|
SSLOptions +StdEnvVars
|
||
|
</Directory>
|
||
|
ServerName {{ dokuwiki_url }}
|
||
|
DocumentRoot {{ dokuwiki_webroot }}
|
||
|
<Directory "{{ dokuwiki_webroot }}">
|
||
|
Require all granted
|
||
|
AllowOverride All
|
||
|
Options MultiViews FollowSymlinks
|
||
|
</Directory>
|
||
|
<IfModule mod_headers.c>
|
||
|
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
|
||
|
</IfModule>
|
||
|
</VirtualHost>
|