Nginx rewrite host

Glen Lumanau glen at
Wed Feb 11 11:35:14 MSK 2009



How can I add 2 or more host?


From: owner-nginx at [mailto:owner-nginx at] On Behalf Of
Kingsley Foreman
Sent: 11 Februari 2009 15:26
To: nginx at
Subject: Re: Nginx rewrite host


                if ($host !={
                        rewrite  ^(.*)$$1 break;



From: Glen Lumanau <mailto:glen at>  

Sent: Wednesday, February 11, 2009 3:14 PM

To: nginx at 

Subject: Nginx rewrite host




How can I create this rule

If host =,

Do nothing


If host !=,

Rewrite bla bla bla


Thank you for any help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list