logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache log files separated
Author
Nucleus



Joined: 12 Feb 2006
Posts: 7

PostPosted: Sun 21 May '06 18:48    Post subject: Apache log files separated Reply with quote

I made the mistake of keeping one access log file in my Apache configuration. I have seven domains on my server, and they have all been logged in one log file. Now I've learned my lesson and I added this line in each one of my vhosts.

CustomLog logs/mydomain1_access.log common
CustomLog logs/mydomain2_access.log common
etc...

Is there a way to separate that big log file in smaller log files for each domain? I don't think it can, but I though I'd ask anyway.

Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sun 21 May '06 21:46    Post subject: Reply with quote

Code:

UseCanonicalName Off

LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon

<Directory /www/commercial>

Options FollowSymLinks
AllowOverride All

</Directory>

<Directory /www/homepages>

Options FollowSymLinks
AllowOverride None

</Directory>

<VirtualHost 111.22.33.44>

ServerName www.commercial.isp.com

CustomLog logs/access_log.commercial vcommon

VirtualDocumentRoot /www/commercial/%0/docs
VirtualScriptAlias /www/commercial/%0/cgi-bin

</VirtualHost>

<VirtualHost 111.22.33.45>

ServerName www.homepages.isp.com

CustomLog logs/access_log.homepages vcommon

VirtualDocumentRoot /www/homepages/%0/docs
ScriptAlias /cgi-bin/ /www/std-cgi/

</VirtualHost>
Back to top
Nucleus



Joined: 12 Feb 2006
Posts: 7

PostPosted: Sun 21 May '06 22:24    Post subject: Reply with quote

I was talking about separating the existing log file that I already have. Not create new ones.
Back to top


Reply to topic   Topic: Apache log files separated View previous topic :: View next topic
Post new topic   Forum Index -> Apache