Multiple vhosts with wildcards?

Igor Sysoev is at rambler-co.ru
Wed Feb 20 16:44:18 MSK 2008


On Wed, Feb 20, 2008 at 09:39:11PM +0800, Yusuf Goolamabbas wrote:

> >  Use regex (note "~"):
> >
> >  server {
> >     server_name review.it.ourdomain.com ~^review\..+\.ourdomain\.com$;
> >     ...
> >  }
> 
> Cool, never knew that server_name supported regex. Didn't see that in
> the English wiki, just cross referencd it in the Russian docs

It had appeared in 0.6.7 and 0.5.33.


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





More information about the nginx mailing list