Nginx rewrite host
Glen Lumanau
glen at lumanau.web.id
Wed Feb 11 11:35:14 MSK 2009
Hello!
How can I add 2 or more host?
From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of
Kingsley Foreman
Sent: 11 Februari 2009 15:26
To: nginx at sysoev.ru
Subject: Re: Nginx rewrite host
if ($host != blah.com){
rewrite ^(.*)$ http://blah.com$1 break;
}
From: Glen Lumanau <mailto:glen at lumanau.web.id>
Sent: Wednesday, February 11, 2009 3:14 PM
To: nginx at sysoev.ru
Subject: Nginx rewrite host
Hello!
How can I create this rule
If host = 127.0.0.1, 127.0.0.2
Do nothing
If host != 127.0.0.1, 127.0.0.2
Rewrite bla bla bla
Thank you for any help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090211/47fbbb75/attachment.html>
More information about the nginx
mailing list