Forum Moderators: DixonJones

Message Too Old, No Replies

Need a suggestion

Don't even know if what I want is possible

         

karmov

6:41 pm on Jun 23, 2003 (gmt 0)

10+ Year Member



So I'm trying to get the logs for my site and my site alone. My site is at the document root. So www.whatever.whatever/index.shtml is mine plus a bunch of directories at this level. There are a bunch of other sites that others are taking care of under www.whatever.whatever/theirdirname. To add to that, there's user accounts on the machine www.whatever.whatever/~username.

The question is:

Is there any way to get Apache to keep a seperate log for my site alone. Right now, it's logging all of the requests for all www.whatever.whatever under the same file.

dmorison

7:13 pm on Jun 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

Using a combination of SetEnvIf..

[httpd.apache.org...]

...and CustomLog...

[httpd.apache.org...]

you can get Apache to log into different files based on various aspects of the connection - such as the "host" in your case.

karmov

11:45 am on Jun 24, 2003 (gmt 0)

10+ Year Member



This sounds great. Looks like exactly what I need. I have one question about it though and this may not be the best place to ask, but what kind of performance hit does this generate? I'm running a site that processed about 35000 hits yesterday and I've got about 25ish directories that I'd need to include in the setenvif. Are there any good tools to check apache's performance to compare a before and after for such a change? Sorry for all of the questions, but I'm learning new stuff here everyday :)