Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Logging large scale apache 2.0 server with MANY vhosts

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  XML exploit? but not on Apache :)  
Author Message
toodamnhard

External


Since: Nov 04, 2003
Posts: 1



(Msg. 1) Posted: Tue Nov 04, 2003 10:08 pm
Post subject: Logging large scale apache 2.0 server with MANY vhosts
Archived from groups: alt>apache>configuration (more info?)

Hi All,

I'm currently setting up a new server to handle a large number of
VHOSTs. We are trying to use dynamically assigned section for vhosts.

The dynamic section is working fine, all nice and peachy.

Logging however is the problem. The docs state that you can't have
individual log files per vhost. (many reasons why this is bad anyway,
even if it was possible)

So basically i'm trying to get all my logs into one file, and then use
the split-logfile program to create individual logs files for each
vhost. Split-logfile however requires that the logfile use the %v at
the start of the log so as to allow it to seperate each entry to the
appropriate vhost.

Problem is, the %v for me is showing the %0 directive that is needed
for dynamic vhosts. Below is a stripped out version of the conf file.

I'd love some opinions....

NameVirtualHost <serverIP>

<VirtualHost <serverIP>

LogFormat "%v %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combinedvhost
CustomLog logs/access_log combinedvhost

UseCanonicalName off
ServerName %0

VirtualDocumentRoot /var/www/html/%0/
VirtualScriptAlias /var/www/html/%0/cgi-bin/

</VirtualHost>

 >> Stay informed about: Logging large scale apache 2.0 server with MANY vhosts 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache/mod_ssl and Name Based VHosts - I'm curious, is this something that is not recommended? or something that isn't supposed to be possible? (As far as I now, through logs and such, my name based vhosts are working fine.)

Optimal Apache configuration for serving large files? - Hello, I am currently preparing a webserver - I have done that several times before, for the often found scenario where some html files, some images and some scripts shall be served under several virtual domains; the scenario that apache is best..

Apache not logging referrers - Hello, I'm using Apache 2.0.46 on WinXP (yeah, I know.) When I go to check the logs I've noticed that none of the referrering sites are being logged. A typical entry looks like this: 64.36.xxx.xxx - - [17/Aug/2003:13:21:42 -0700] "GET / HTTP/1.1...

Logging proxy request incoming to Apache - Hi all Apache users, I have setup Apache to act as a proxy between two hosts. Is it possible to log all the data that is coming to Apache, so that I can monitor that data passing between the 2 hosts ? Thanks a lot Francesco

Upgrading 1.3 -> 2.0 vhosts? - Hi! Does the httpd config differ much between 1.3 and 2.0? The reason I wonder is becouse I just reinstalled my system and in the new system I went with 2.0 and copied most entries from the 1.3 config, but now my virtual hosts doesn't work anymore....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]