53 lines
1.7 KiB
Plaintext
53 lines
1.7 KiB
Plaintext
<IfModule mod_ssl.c>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName dottes.cryhavoc.org.uk
|
|
|
|
ErrorLog /var/log/apache2/dottes-error.log
|
|
CustomLog /var/log/apache2/dottes-access.log combined
|
|
|
|
RemoteIPProxyProtocol On
|
|
|
|
DocumentRoot /srv/jenkins/jobs/Dottes/builds/lastSuccessfulBuild/archive/web
|
|
<Directory /srv/jenkins/jobs/Dottes/builds/lastSuccessfulBuild/archive/web>
|
|
Options Indexes FollowSymLinks
|
|
Options +Includes
|
|
|
|
# We only want SSI on index.html, but I can't see how to just
|
|
# do that. Since we don't have that many .html, just enable it
|
|
# for them all. I did use the XBitHack, but X bits aren't
|
|
# preserved when the files are archived.
|
|
AddOutputFilter INCLUDES .html
|
|
|
|
AllowOverride None
|
|
Order allow,deny
|
|
allow from all
|
|
|
|
Require all granted
|
|
</Directory>
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /var/lib/dehydrated/certs/dottes.cryhavoc.org.uk/fullchain.pem
|
|
SSLCertificateKeyFile /var/lib/dehydrated/certs/dottes.cryhavoc.org.uk/privkey.pem
|
|
</VirtualHost>
|
|
|
|
</IfModule>
|
|
|
|
<VirtualHost *:80>
|
|
ServerName dottes.cryhavoc.org.uk
|
|
|
|
ErrorLog /var/log/apache2/dottes-error.log
|
|
CustomLog /var/log/apache2/dottes-access.log combined
|
|
|
|
RemoteIPProxyProtocol On
|
|
|
|
<IfModule rewrite_module>
|
|
#
|
|
# This redirects all accesses to the HTTPS version of the site.
|
|
#
|
|
RewriteEngine On
|
|
|
|
RewriteRule ^/?(.*) https://dottes.cryhavoc.org.uk/$1 [R=301,L]
|
|
</IfModule>
|
|
</VirtualHost>
|