On 21 May 1998 [EMAIL PROTECTED] wrote:

> [In order for any reply to be added to the PR database, ]
> [you need to include <[EMAIL PROTECTED]> in the Cc line ]
> [and leave the subject line UNCHANGED.  This is not done]
> [automatically because of the potential for mail loops. ]
> 
> 
> Synopsis: logging of virtual host access confusing in access.log, errors.log
> 
> Comment-Added-By: coar
> Comment-Added-When: Thu May 21 08:38:33 PDT 1998
> Comment-Added:
> I guess I was being excessively cryptic.  I pointed you
> to split-logfile as an example of how you could include
> the virtual host name in your access log.  Or, if you
> don't want to pollute your main access log, you can
> always create another one with an alternate format by
> using the CustomLog directive.  Prefixing the format
> with something like "{%{Host}i|%v}" will result in
> each record starting with the name of the virtual host
> that was requested, and the name of the vhost that
> actually serviced the request.  From that, the URI
> field, and your knowledge of each vhost's DocumentRoot,
> Alias, and ScriptAlias settings you should be able to
> map the request to an actual file.

     Um, ... hm.  I've never investigated the CustomLog directive.
I'll take a look .....    Hm, there's a lot here.  

     It looks as though I could have separate log if necessary for
each virtual host too.  Intriguing.  The trick is to produce something
which automated log analysis tools won't barf over.  

     This would appear capable of doing the job maybe.  I notice that
there are %f, %U, & %v.  You suggested "{%{Host}i|%v}".  I'll try this
but would %f give the path or just the name?  I like things to be self
documenting if at all possible.  Implied knowledge often gets lost.  

-------------------------------------------------------------------------------
Chris Johnson                  |Internet: [EMAIL PROTECTED]
Assistant Director, Systems    |Web:      http://www.dac.neu.edu/dac/c.johnson
Division of Academic Computing |Voice:    617.373.3300
Northeastern University, 39 RI |FAX:      617.373.8600
60 Huntington Ave.             |I'm continually amazed by mankind's seemingly
Boston, MA., U.S.A.  02115     |infinite capacity for stupidity.    Me
-------------------------------------------------------------------------------

Reply via email to