vburshteyn

Igor Sysoev is at rambler-co.ru
Thu Jul 9 18:31:39 MSD 2009


On Wed, Jul 08, 2009 at 09:18:24AM -0400, vburshteyn wrote:

> Hi folks. back again for more info :)
> 
> I need to use the rewrite module to rewrite redirects.
> 
> for example
> 
> http://www.mysite.com/9-to-5/group_show/569889 needs to be http://groups.bqa.mysite.com/9-to-5/group_show/569889
> 
> any idea how i would go about doing this?

If you need just to redirect to another host, then:

   server {
       server_name  www.mysite.com;
       rewrite      ^  http://groups.bqa.mysite.com$request_uri?;
   }


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





More information about the nginx mailing list