server_name help

rkmr.em at gmail.com rkmr.em at gmail.com
Thu Jul 24 22:37:04 MSD 2008


On Thu, Jul 24, 2008 at 11:02 AM, Igor Sysoev <is at rambler-co.ru> wrote:
> 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$;
i use 0.7.6 and it works great! thanks!!





More information about the nginx mailing list