issue with capturing server name

Sven 'Darkman' Michels sven at darkman.de
Sun Dec 12 23:53:50 MSK 2010


Hi,

Am 12.12.2010 21:45, schrieb Igor Sysoev:
>> nope, its just a very small test config.
>>
>> works:
>>   server {
>>     listen 80;
>>     server_name ~^(?<domain>.+)\.internal\.mydomain\.tld$;
>>   ...
>>   }
>>
>> doesn't:
>>   server {
>>   listen  [::]:80 default ipv6only=off;
>>     server_name ~^(?<domain>.+)\.internal\.mydomain\.tld$;
>>   ...
>>   }
>>
>> nothing else changed.
> 
> The attached patch should fix the bug.

Ok, will try tomorrow (haven't time right now, hopefully tomorrow), but
thanks a lot for this quick fix. I'll report back!

Regards,
Sven



More information about the nginx mailing list