54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
<IfModule mod_ssl.c>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName lunch.org.uk
|
|
ServerAlias www.lunch.org.uk
|
|
|
|
ErrorLog /var/log/apache2/lunch-error.log
|
|
CustomLog /var/log/apache2/lunch-access.log combined
|
|
|
|
RemoteIPProxyProtocol On
|
|
|
|
Alias / /usr/share/dokuwiki/
|
|
<Directory /usr/share/dokuwiki/>
|
|
Options +FollowSymLinks
|
|
AllowOverride All
|
|
order allow,deny
|
|
allow from all
|
|
Require all granted
|
|
</Directory>
|
|
|
|
<Directory /usr/share/dokuwiki/bin>
|
|
Require all denied
|
|
</Directory>
|
|
|
|
<Directory /var/lib/dokuwiki/data>
|
|
Require all denied
|
|
</Directory>
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /var/local/certificates/lunch.org.uk/fullchain.pem
|
|
SSLCertificateKeyFile /var/local/certificates/lunch.org.uk/privkey.pem
|
|
</VirtualHost>
|
|
|
|
</IfModule>
|
|
|
|
<VirtualHost *:80>
|
|
ServerName lunch.org.uk
|
|
ServerAlias www.lunch.org.uk
|
|
|
|
ErrorLog /var/log/apache2/lunch-error.log
|
|
CustomLog /var/log/apache2/lunch-access.log combined
|
|
|
|
RemoteIPProxyProtocol On
|
|
|
|
<IfModule rewrite_module>
|
|
#
|
|
# This redirects all accesses to the HTTPS version of the site.
|
|
#
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/?(.*) https://lunch.org.uk/$1 [R=301,L]
|
|
</IfModule>
|
|
</VirtualHost>
|