How do I NOT inherit refererlogs in VirtualHosts in Apache?

How do I NOT inherit refererlogs in VirtualHosts in Apache?

Post by Sean Ston » Tue, 02 Sep 1997 04:00:00



Hello!

I have several apache web servers running on Linux, each of which is running
close to 250 virtual hosts. These hosts specify each a DocumentRoot, a
ServerName, and TransferLog. The rest of the directoves (e.g., ErrorLog) are
inherited from the main server.

This is my problem:

I want to have RefererLog set for the main server ONLY. IOW, I do NOT want
this directive to be inherited in the VirtualHosts. With 250 virtualhosts
running, however, and each of them having an open file handle to TransferLogs,
I don't have any file handles left. For instance, I tried setting RefererLog
to /dev/null in all the VirtualHosts, but I got "Too many files open" and
httpd would stop.

There are two main reasons why I don't want to inherit RefererLog:

1. The file would get WAY too big too fast and consume hundreds of MB within
hours.
2. There is no way for me to tell which server (the main or any of the
VirtualHosts) is being logged, e.g., http://www.mysite.com/ -> /foo.html - I
have no idea which server foo.html resides on, and of course this is
especially complicated when it's / or /index.html.

Please let me know how I can accomplish this! TIA!

sean

___________________________________________________________________

HYPERCON, Inc.             888-HYPERCON     http://www.hypercon.com
Hypercon is your full service Internet and Web Presence Specialist!
We offer award winning Internet access, Web Design and Hosting to
individuals and businesses. Check us out at http://www.hypercon.com
or call us at 888-HYPERCON.
-------------------------------------------------------------------