varnish backend redirection based on url

Shibashish shib4u at gmail.com
Wed Jul 27 13:34:17 CEST 2011


Hi,

I have a main website running which has now been translated to different
languages. The different language sites are running on different backend
servers. I want to redirect/distribute traffic to backends based on the url
without rewriting the url/host.

e.g www.domain.com/en -> backend1
www.domain.com/hi -> backend2
www.domain.com/ma -> backend3
www.domain.com/ch -> backend4
www.domain.com/ja -> backend5

The content should be served on the url www.domain.com/ja, i do not want to
rewrite the domain as ja.domain.com. Is this possible in varnish or should i
use mod_proxy/Apache ?

TIA.

ShiB.
while ( ! ( succeed = try() ) );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110727/fe3da147/attachment-0003.html>


More information about the varnish-misc mailing list