varnish using as a proxy interfering with get requests
varnish list
maillist-varnish at iamafreeman.com
Wed Jul 20 21:24:59 CEST 2016
Thanks for the tips. I'll get to apache when I've got varnish passing the
request on correctly
I'll bisect the releases to find the change that stopped it working. it
might be a 3 to 4 thing though.
Neil
On 18 Jul 2016 10:58, "Andrei" <lagged at gmail.com> wrote:
Also, you'll want to enable ProxyPreserveHost in Apache.
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost
http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypreservehost
On Jul 17, 2016 17:51, "Jeff Potter" <jpotter-varnish at codepuppy.com> wrote:
>
> Is apache getting a Host header as well? I would expect a correct request
> to look like:
>
> GET /url
> Host: website.com
>
> -J
>
> On Jul 16, 2016, at 4:24 PM, varnish list <
> maillist-varnish at iamafreeman.com> wrote:
>
> Hello
>
> I'm attempting to use varnish in a somewhat unusual manner, but with
> fairly good reason I think.
>
> browser -> varnish server :80 -> apache proxy (localhost:3128) -> any site
>
> 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
>
> issue is varnish 4.1.3, but I've tried other 4's, interferes with the
> users request
>
> I'm comparing the request using tshark and varnishlog
>
> proxy request can look like
>
> GET http://website.dom/url
> I see that hit varnish from the browser
>
> what apache gets is
> GET /url
>
> I can't figure out what is stripping the http://website.dom. My
> default.vcl is practically empty
>
> vcl 4.0;
> import std;
> import statsd;
> import timers;
>
> backend default {
> .host = "127.0.0.1";
> .port = "3128";
> }
>
> sub vcl_recv {
> return (pass);
> }
>
> sub vcl_backend_response {
> }
>
> sub vcl_deliver {
> if (req.url ~ "/REST/UI/Content/CheckOut") {
> statsd.incr("website.checkout");
> }
> }
>
> sub vcl_init {
> statsd.server( "statdcollector.dom", "8125" );
> statsd.prefix( "proxy.test." );
> }
>
> 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
>
> Any clues where I find and disable this interference?
>
> Thanks
>
> Neil
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160720/c6c6fec7/attachment.html>
More information about the varnish-misc
mailing list