How to generate url with sub domain to new url with query string?

Igor Sysoev is at rambler-co.ru
Mon Jun 22 13:39:20 MSD 2009


On Mon, Jun 22, 2009 at 01:37:40AM -0400, leakhina wrote:

> Hi everyone,
> 
> I'm very new with Nginx, and now I want to use Nginx to generate new url from the url user passed.
> Example:
> User type to browser like http://us.domain.com, and I want Nginx generates to http://www.domain.com/?portal=us or http://domain.com/?portal=us.
> 
> How can I rewrite the nginx to do this?

Do you mean redirect sent to client ?


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





More information about the nginx mailing list