In message <[EMAIL PROTECTED]
m>, "Pavel Pragin" writes:
>Hello,
>
>Can I add rule to the VCL configuration file to redirect from one URL to
>another. So if the user goes to http://www.bla.com it will redirect to
>http://www.bla1.com . What will this rule look like and will it be in
>the "sub vcl_recv" section. I would love an example.

        if (req.http.host == "www.bla.com") {
                set req.http.host = "www.bla1.com";
        }

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to