Fixing backend URLs

Chris Cook crcook at
Wed Sep 15 01:40:10 CEST 2010

I have an application that takes a URI that's submitted and spits back
a different URI with a 302 redirect.  The backend server translates
this and sends back a new URI that contains the backend server port.
I want to use Varnish to remove the backend server port before sending
the request to the client.

Varnish receives -
Varnish makes it -

What's the best way to do this?  I assume it involves vcl_fetch and
some variants of the beresp, but I haven't been able to figure it out


More information about the varnish-misc mailing list