httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthony G <scar...@gmail.com>
Subject [users@httpd] Seperating Logs with mass virtual hosting
Date Wed, 29 Jun 2005 23:31:22 GMT
I'am running 

Win 2003
Apache 2.0.53

I'am pulling my virtual hosts from a vhost.map file. My Virtual Host
configuration within httpd.conf looks like this.

RewriteEngine on
RewriteMap lowercase int:tolower
RewriteMap vhost txt:E:\apache\Apache2\conf\vhost.map
RewriteCond   %{HTTP_HOST}     ^(www\.)?([^.]+\.com)$ 
RewriteCond   ${lowercase:%2}  ^(.+)$
RewriteCond   ${vhost:%1} ^(/.*)$
RewriteRule   ^/(.*)$   %1/$1 
LogFormat "%V %{TYPE}e %h %l %u %t \"%r\" %>s %b" vhostspecial
CustomLog  "e:/webspace/logs/vhost.log" vhostspecial

Is there a way to split the main vhost.log into not only seperate
files but seperate directories based on the virtual host name?

I have tried using the apache split-logfile.in and it just splits the
log into seperate logfiles based on the domain name, not directories.

When I run split-logfile.in it also gives me a seperate log file for
domain.com and www.domain.com.  Is there a way for those to be
combined?

Thanks,
Anthony - scar911@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message