62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
|
<IfModule mod_ssl.c>
|
||
|
|
||
|
<VirtualHost *:443>
|
||
|
ServerName www.cryhavoc.org.uk
|
||
|
ServerAlias cryhavoc.org.uk
|
||
|
|
||
|
ErrorLog /var/log/apache2/cryhavoc-error.log
|
||
|
CustomLog /var/log/apache2/cryhavoc-access.log combined
|
||
|
|
||
|
RemoteIPProxyProtocol On
|
||
|
|
||
|
DocumentRoot /usr/share/wordpress
|
||
|
|
||
|
Alias /wp-content /var/lib/wordpress/wp-content-cryhavoc
|
||
|
|
||
|
<Directory /var/lib/wordpress/wp-content-cryhavoc>
|
||
|
Order deny,allow
|
||
|
Allow from all
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
|
||
|
<Directory /usr/share/wordpress>
|
||
|
Options FollowSymLinks
|
||
|
AllowOverride Limit Options FileInfo
|
||
|
Order allow,deny
|
||
|
Allow from all
|
||
|
Require all granted
|
||
|
DirectoryIndex index.php
|
||
|
|
||
|
RewriteEngine On
|
||
|
RewriteBase /
|
||
|
RewriteRule ^index\.php$ - [L]
|
||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||
|
RewriteRule . /index.php [L]
|
||
|
</Directory>
|
||
|
|
||
|
SSLEngine on
|
||
|
SSLCertificateFile /var/local/certificates/cryhavoc.org.uk/fullchain.pem
|
||
|
SSLCertificateKeyFile /var/local/certificates/cryhavoc.org.uk/privkey.pem
|
||
|
</VirtualHost>
|
||
|
|
||
|
</IfModule>
|
||
|
|
||
|
<VirtualHost *:80>
|
||
|
ServerName cryhavoc.org.uk
|
||
|
ServerAlias www.cryhavoc.org.uk
|
||
|
|
||
|
ErrorLog /var/log/apache2/cryhavoc-error.log
|
||
|
CustomLog /var/log/apache2/cryhavoc-access.log combined
|
||
|
|
||
|
RemoteIPProxyProtocol On
|
||
|
|
||
|
<IfModule rewrite_module>
|
||
|
#
|
||
|
# This redirects all accesses to the HTTPS version of the site.
|
||
|
#
|
||
|
RewriteEngine On
|
||
|
RewriteRule ^/?(.*) https://www.cryhavoc.org.uk/$1 [R=301,L]
|
||
|
</IfModule>
|
||
|
</VirtualHost>
|