[users@httpd] Seperating Logs with mass virtual hosting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux