Switching backends based on a cookie

saltyflorida nginx-forum at nginx.us
Fri Jan 29 05:01:28 MSK 2010


merlin corey Wrote:
-------------------------------------------------------
> On Thu, Jan 28, 2010 at 4:24 PM, merlin corey 
> wrote:
> > Marcus' solution should be just fine, but I feel
> I must ask an
> > important question:
> >
> > Doesn't it make more sense to have production,
> static, and dev as
> > separate server blocks entirely with their own
> hostnames?  This is, at
> > the least, traditional :).
> >
> > -- Merlin
> >
> 
> Of course static should read staging -.-
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx

I realize this idea is unorthodox... We are using Wordpress MU on the
backend and it uses the domain name to generate pages. We want to serve
many domains with a single server cluster and we wanted to be able to
test using the production domain names.

Eliot

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,46979,47030#msg-47030




More information about the nginx mailing list