Commit 2141f9a6 authored by Molly Miller's avatar Molly Miller

conf: add per-vhost logging configuration.

This was in production on athdheise already, so this commit is a backport into
the configuration in git.
parent 035152c8
......@@ -7,6 +7,7 @@ DocumentRoot "/srv/www/adelie/www"
<VirtualHost *:80>
ServerName www.adelielinux.org
CustomLog /var/log/apache2/access.adelie.http.log combined
</VirtualHost>
<VirtualHost *:443>
......@@ -17,11 +18,13 @@ DocumentRoot "/srv/www/adelie/www"
Header always set Strict-Transport-Security "max-age=15768000"
</IfModule>
ServerName www.adelielinux.org
CustomLog /var/log/apache2/access.adelie.https.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName adelielinux.org
Redirect 301 / http://www.adelielinux.org/
CustomLog /var/log/apache2/access.adelie.http.log combined
</VirtualHost>
<VirtualHost *:443>
......@@ -30,4 +33,5 @@ DocumentRoot "/srv/www/adelie/www"
SSLCertificateChainFile /etc/ssl/adelie-ca.pem
ServerName adelielinux.org
Redirect 301 / https://www.adelielinux.org/
CustomLog /var/log/apache2/access.adelie.https.log combined
</VirtualHost>
......@@ -10,9 +10,11 @@
DocumentRoot "/srv/www/adelie/static"
ServerName static.adelielinux.org
CustomLog /var/log/apache2/access.static.https.log combined
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/srv/www/adelie/static"
ServerName static.adelielinux.org
CustomLog /var/log/apache2/access.static.http.log combined
</VirtualHost>
......@@ -15,10 +15,12 @@
DocumentRoot "/srv/www/adelie/support"
ServerName help.adelielinux.org
ServerAlias support.adelielinux.org
CustomLog /var/log/apache2/access.support.https.log combined
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/srv/www/adelie/support"
ServerName help.adelielinux.org
ServerAlias support.adelielinux.org
CustomLog /var/log/apache2/access.support.http.log combined
</VirtualHost>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment