Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Apache log files separated |
|
Author |
|
Nucleus
Joined: 12 Feb 2006 Posts: 7
|
Posted: Sun 21 May '06 18:48 Post subject: Apache log files separated |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Sun 21 May '06 21:46 Post subject: |
|
|
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
|
Posted: Sun 21 May '06 22:24 Post subject: |
|
|
I was talking about separating the existing log file that I already have. Not create new ones. |
|
Back to top |
|
|
|
|
|
|