vburshteyn

Igor Sysoev is at rambler-co.ru
Fri Jul 10 20:01:45 MSD 2009


On Fri, Jul 10, 2009 at 11:56:33AM -0400, vburshteyn wrote:

> Igor, 
> 
> in your opinion, if redirects are just say 10% of the traffic, and rest does not need to be redirected, would you just use IF statment?
> 
> say 
> 
> if (host ~ group) 
> rewrite xxxxxxxxxxxxxxxx
> 
> or u would still go with virtual server set up that you suggested earlier?

If you want to write "if (host ~ group)", this means that you should
forget about RewriteCond and use "server { server_name group; ... }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list