W. Jeffrey Rankin <[EMAIL PROTECTED]> wrote:
> Hi:
>
> I think I almost have a LOGFORMAT together for TclHttpd. I'm having a
> few problems with referers and browsers though.
>
> When I configure my LOGFORMAT like this:
>
> LOGFORMAT (%s - - [%d/%M/%Y:%h:%n:%j %j] "%j %r %j" %c %j "%f" "%B"
> %j)
>
> many exceptions are returned in the debugging output indicating
> problems with referer, browser, or both. The exceptions are generated
> when the referer and browser fields are empty (containing only -).
>
> So, I tried this LOGFORMAT:
> LOGFORMAT (%s - - [%d/%M/%Y:%h:%n:%j %j] "%j %r %j" %c %j %f %B %j)
>
> Is this case, no exceptions are generated while debugging, but the
> browser, OS, and referer reports look odd, for example browser names
> and referers are preceded by a quote:
> "http://www.google.com/
> "Mozilla/4.0
>
> Any ideas? TIA

Just use both LOGFORMAT strings. Put the one with the quotes first. Then
any lines that don't match it will be checked against the next
LOGFORMAT. But if you're sure that the referrer and browser in those
lines is always -, then you can just use
  LOGFORMAT (%s - - [%d/%M/%Y:%h:%n:%j %j] "%j %r %j" %c %j)
as the second LOGFORMAT.

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/analog-help@lists.isite.net/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to