Permanent Redirects

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Nov 6 12:36:50 CET 2009


In message <b6131fdc0911060154h59074601td7a40aaa5e07d6a0 at mail.gmail.com>, Steph
en Nelson-Smith writes:

>One approach would be to have varnish pass those names through to
>apache, and have apache do a redirect, but is there a way to do it in
>VCL?

It happens automatically, the requets "Host:" header gets passed on,
unless you overwrite it in VCL.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list