Varnish redirection

Flatcircle flatcircle at hotmail.com
Fri Jun 24 22:00:39 CEST 2011


Hello,

I saw that it is possible to redirect domains with a 'dirty' hack. 
(http://www.varnish-cache.org/trac/wiki/VCLExampleRedirectInVCL)
This works well.

However, is it also possible to redirect subdirectories on a domain?

For example:

http://www.example.com/somesubdirectory

should redirect to

http://www.adifferentsite.com

Is this possible with Varnish? (and is so, tips are welcome :-)

Regards.





More information about the varnish-misc mailing list