[EMAIL PROTECTED] wrote:

> I have the following logfile example:
>
> 10.1.1.1 - - [18/May/2000:14:10:10 -0000] "GET
> http://home.netscape.com:80/images/nnc_lockup.gif HTTP/1.1" 200 783
>
> Basically, CLF with the virtual host thrown in.  Using the following
> config, I can get the virtual host report, but it chops off the
> leading "/" in the directory report:
>
> LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j] "%j%whttp://%v/%r%wHTTP%j" %c %b)

This won't work, because there really is no separator between the virtual host and
the request. That '/' is part of the request, it's not a separator.

> I've tried "%v%r" without the "/" and it fails.  Any ideas?

This won't work, because it doesn't know where %v ends. In fact it probably tries
to gobble up all the matching characters until it finds a percent sign followed by
an 'r'.

I would recommend changing the log format on your server so that it logs the
virtual host is a true separate field from the request, perhaps separated by a
space.

If you can't do that, then just go back to the CLF and use the directory report as
your virtual host reports with

    SUBDIR    http://*/*


HTH,

Jeremy Wadsack
Wadsack-Allen Digital Group


------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to