MythicSalt/states/havoc_website/cryhavoc.org.uk.conf

82 lines
2.4 KiB
Plaintext
Raw Normal View History

2023-05-11 13:24:29 +01:00
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName www.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>
<VirtualHost *:443>
ServerName 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>
SSLEngine on
SSLCertificateFile /var/local/certificates/cryhavoc.org.uk/fullchain.pem
SSLCertificateKeyFile /var/local/certificates/cryhavoc.org.uk/privkey.pem
</VirtualHost>
2023-05-11 13:24:29 +01:00
</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>