sign * in server_name

Wayne E. Seguin wayneeseguin at gmail.com
Wed Jun 6 15:49:37 MSD 2007


On Jun 06, 2007, at 04:53 , Igor Sysoev wrote:
> On Wed, Jun 06, 2007 at 08:50:47AM +0200, Martin Minka wrote:
>
>> There is written in Wiki documentation that it is possible to use  
>> * as
>> first part of name in server_name directive.
>> I need to catch all servers directed to my server which name  
>> starts with
>> a word.
>>
>> For example will this work ?
>>
>> 	server {
>> 		listen 80;
>> 		server_name main.server.com partner.* affiliate.* ;	
>> 		......
>>
>> If not, is there another way to achieve this ?
>
> nginx currently does not support such wildcards, but it is  
> relatively easy
> to add them, because their handling is the same as "*.site.com".

I'd like to submit another positive vote for this feature.
This would cleanup many of my config files.

--
Wayne E. Seguin
Sr. Systems Architect & Systems Admin
wayneseguin at gmail.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070606/2929c612/attachment.html>


More information about the nginx mailing list