Using Varnish to Proxy 1000s of different sites
Martin Boer
martin.boer at netclever.nl
Mon Aug 9 10:34:30 CEST 2010
I think that Pound is more suitable for what you are trying to achieve.
Although I don't know if Pound can handle a 1000 domain/backend
combinations.
No matter what you throw at it, 1000 stays a large number.
Martin
On 08/05/2010 04:33 PM, Tony Primerano wrote:
> I suspect what I am trying to do here falls outside of Varnish's
> intended purpose but here is what I am trying to do...
>
> Instead of using Varnish to cache content for a single site with
> several backends, I want to use it to allow me to serve existing
> sites on different domains.
>
> For example I can run varnish on test.com <http://test.com> and serve
> content from example.com <http://example.com> using this configuration.
>
> backend test {
> .host = "example.com <http://example.com>";
> .port = "80";
> }
>
> sub vcl_recv {
> set req.http.host = "example.com <http://example.com>";
> set req.backend = test;
> return(pass);
> }
>
> But what if I have 1000s of backends and I choose them based on the
> domain that user's hit varnish with. Is this something Varnish
> handles or is it only intended to work with a handful of backends?
>
> Also, it would be really cool if I could do something like this..
> sub vcl_recv {
> set req.http.host = "example.com <http://example.com>";
> set req.backend.host = req.http.host;
> return(pass);
> }
>
> I'm guessing backends are defined ahead of time for connection pooling
> but maybe not.
>
> Anyway, this is long enough, tell me if I would be nuts to try to do
> this with Varnish and if so what would be better. I'm tempted to
> write my own proxy but that seems like such a waste. :-)
>
> Tony
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20100809/4a7d1135/attachment-0003.html>
More information about the varnish-misc
mailing list