<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div>Is apache getting a Host header as well? I would expect a correct request to look like:<div class=""><br class=""></div><div class=""><div dir="ltr" class=""><div class="">GET /url</div></div>Host: <a href="http://website.com" class="">website.com</a></div><div class=""><br class=""></div><div class="">-J</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 16, 2016, at 4:24 PM, varnish list <<a href="mailto:maillist-varnish@iamafreeman.com" class="">maillist-varnish@iamafreeman.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello<div class=""><br class=""></div><div class="">I'm attempting to use varnish in a somewhat unusual manner, but with fairly good reason I think.</div><div class=""><br class=""></div><div class="">browser -> varnish server :80 -> apache proxy (localhost:3128) -> any site</div><div class=""><br class=""></div><div class="">the idea being to use varnish to fire off statd timing info to get metrics on operations against an number of systems, some we run, some out sourced, in a standard manner</div><div class=""><br class=""></div><div class="">issue is varnish 4.1.3, but I've tried other 4's, interferes with the users request</div><div class=""><br class=""></div><div class="">I'm comparing the request using tshark and varnishlog</div><div class=""><br class=""></div><div class="">proxy request can look like</div><div class=""><br class=""></div><div class="">GET <a href="http://website.dom/url" class="">http://website.dom/url</a></div><div class="">I see that hit varnish from the browser</div><div class=""><br class=""></div><div class="">what apache gets is</div><div class="">GET /url</div><div class=""><br class=""></div><div class="">I can't figure out what is stripping the <a href="http://website.dom/" class="">http://website.dom</a>. My default.vcl is practically empty</div><div class=""><br class=""></div><div class=""><div class="">vcl 4.0;</div><div class="">import std;</div><div class="">import statsd;</div><div class="">import timers;</div><div class=""><br class=""></div><div class="">backend default {</div><div class=""> .host = "127.0.0.1";</div><div class=""> .port = "3128";</div><div class="">}</div><div class=""><br class=""></div><div class="">sub vcl_recv {</div><div class=""> return (pass);</div><div class="">}</div><div class=""><br class=""></div><div class="">sub vcl_backend_response {</div><div class="">}</div><div class=""><br class=""></div><div class="">sub vcl_deliver {</div><div class=""> if (req.url ~ "/REST/UI/Content/CheckOut") {</div><div class=""> statsd.incr("website.checkout");</div><div class=""> }</div><div class="">}</div><div class=""><br class=""></div><div class="">sub vcl_init {</div><div class=""> statsd.server( "statdcollector.dom", "8125" );</div><div class=""> statsd.prefix( "proxy.test." );</div><div class="">}</div></div><div class=""><br class=""></div><div class="">varnish 3.0.5 didn't do this, but its statd and timing support isn't great and old hat, so I'm none too interesting in sticking with 3</div><div class=""><br class=""></div><div class="">Any clues where I find and disable this interference?</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">Neil</div></div>
_______________________________________________<br class="">varnish-misc mailing list<br class=""><a href="mailto:varnish-misc@varnish-cache.org" class="">varnish-misc@varnish-cache.org</a><br class="">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</div></blockquote></div><br class=""></div></body></html>