Summary: | www-servers/varnish-3.0.2 log '%r' format specifier returns the wrong info | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | jon |
Component: | Current packages | Assignee: | Anthony Basile <blueness> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to remove protocol and host from %r. |
Description
jon
2011-12-08 22:41:27 UTC
After digging around the source I discovered that the '%U' parameter is the URL without the protocol and host portions (ie "/mypage.html" instead of "http://my.domain.com/mypage.html". So I now use "%m %U%q %H" instead of "%r". This could be returned to the old behavior, and what at least seems to be my "normal" experience, by dropping lines 631-637 from the varnishncsa.c file. See attached diff. Created attachment 299329 [details, diff]
Patch to remove protocol and host from %r.
3.0.2 is off the tree and I'm going to be dropping the 3.x series in favor of 4.x. Is this an issue with the 4.x series? (In reply to Anthony Basile from comment #3) > 3.0.2 is off the tree and I'm going to be dropping the 3.x series in favor > of 4.x. Is this an issue with the 4.x series? I don't know as I haven't had the opportunity to work with 4.x. varnish 3.x has been EOL since 2015-03-23, sorry but its time to punt it. See http://www.varnish-cache.org/releases/index.html |