wildcard redirect

Igor Sysoev is at rambler-co.ru
Wed Aug 12 12:02:30 MSD 2009


On Wed, Aug 12, 2009 at 09:20:37AM +0200, Juergen Gotteswinter wrote:

> Hello Folks,
> 
> is there a way to do a wildcard redirect like
> 
> *.blafoo.com -> alwaysthis.com
> 
> ?

server {
    server_name  *.blafoo.com;
    rewrite      ^  http://alwaysthis.com/;
}


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





More information about the nginx mailing list