In Varnish how can I redirect a URL to another URL on a different host.

Anders Nordby anders at fupp.net
Tue Oct 21 14:20:50 CEST 2008


Hi,

AFAIK, you can not (easily) do this. What you can do is to change
req.url in vcl_recv to another URL that will do the redirect for you.

On Mon, Oct 20, 2008 at 03:17:28PM +0530, Shahid P.A wrote:
>    Hello,
>    How do I redirect a URL to another URL on a different host. Using
>    301/302 redirection from the host for example
>    [1]www.example.com/index.html  to [2]www.redirect.com/index.php
> 
> References
> 
>    1. http://www.example.com/index.html
>    2. http://www.redirect.com/index.php

> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc



-- 
Anders.



More information about the varnish-misc mailing list