summaryrefslogtreecommitdiff
path: root/apache2/sites-available/www.secure-example.com
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-10-19 22:23:51 +0000
committerJonas Smedegaard <dr@jones.dk>2007-10-19 22:23:51 +0000
commitbfa8c6bb9f1f188082cc5445a19560b9b8abbc0c (patch)
treeb657e34230f93ab3919d7c7623cee9f974d2be87 /apache2/sites-available/www.secure-example.com
parentfe026bd927cf59a5d136f48ee14cb39118047330 (diff)
Adjust log setup. Tighten spacing and indentation.
Diffstat (limited to 'apache2/sites-available/www.secure-example.com')
-rw-r--r--apache2/sites-available/www.secure-example.com13
1 files changed, 8 insertions, 5 deletions
diff --git a/apache2/sites-available/www.secure-example.com b/apache2/sites-available/www.secure-example.com
index 792905a..3842593 100644
--- a/apache2/sites-available/www.secure-example.com
+++ b/apache2/sites-available/www.secure-example.com
@@ -2,22 +2,24 @@
ServerName www.example.com
ServerAlias www
ServerAdmin webmaster@example.com
+
DocumentRoot /home/webmaster/public_websites/www.example.com/
- Include /etc/apache2/conf.d/local-log-vhosts.conf
- CustomLog "| /usr/sbin/vlogger -s access.log -u admin -g admin -t '%Y.%m.%d' /home/webmaster/weblogs" combined_vlogger
- ErrorLog "| /usr/sbin/vlogger -s error.log -u admin -g admin -t '%Y.%m.%d' -e /home/webmaster/weblogs/ERRORS"
+ ErrorLog /var/log/apache2/www.example.com-error.log
+ CustomLog /var/log/apache2/www.example.com-access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName example.com
ServerAlias *.www.example.com
ServerAdmin webmaster@example.com
+ Include /etc/apache2/conf.d/local-log-origin.conf
+
RewriteEngine On
RewriteRule / http://www.example.com/ [R]
# RewriteRule /(.*) http://www.example.com/$1 [R]
- TransferLog /dev/null
+ CustomLog /var/log/apache2/redirect.log origin
</VirtualHost>
<VirtualHost *:443>
ServerName www.example.com:443
@@ -27,10 +29,11 @@
ServerAdmin webmaster@example.com
Include /etc/apache2/conf.d/local-ssl.conf
+ Include /etc/apache2/conf.d/local-log-origin.conf
RewriteEngine On
RewriteRule / http://www.example.com/ [R]
# RewriteRule /(.*) http://www.example.com/$1 [R]
- TransferLog /dev/null
+ CustomLog /var/log/apache2/redirect.log origin
</VirtualHost>