server_name help

Igor Sysoev is at rambler-co.ru
Thu Jul 24 22:02:15 MSD 2008


On Thu, Jul 24, 2008 at 10:18:14AM -0700, rkmr.em at gmail.com wrote:

> I serve multiple apps using one nginx server using server_name like this
> 
> 
>         server_name  APP1.domain1.com;
> 
> i want to server_name to be app1.*.com, how do i do this correctly for nginx?

Using regex in 0.6.25+:

       server_name  ~^app1\..+\.com$;


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





More information about the nginx mailing list