Varnish the poor mans reverse proxy?

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Jun 5 09:58:10 CEST 2007


In message <000301c7a709$fbaafda0$6600a8c0 at octane>, Nathan McSween writes:

>Is it possible to use varnish as a fake layer 7 load balancer by redirecting
>static content (e.g. .png, .jpg, etc) to a fast static server and dynamic to
>another?

Yes.

Declare two backends in your VCL program and select the appropriate
one in vcl_miss{}

-- 
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