nginx: server_name wildcard not working

Wayne E. Seguin wayneeseguin at gmail.com
Wed Jun 27 17:53:51 MSD 2007


On Jun 27, 2007, at 09:20 , Igor Clark wrote:
> Thanks Wayne.
>
> I've tried with 0.6 and that allows wildcards at the end, but  
> apparently not at the beginning *and* the end.
>
> 	# /usr/local/nginx-0.6.0/sbin/nginx -t -c /usr/local/nginx-0.6.0/ 
> conf/nginx.conf
> 	2007/06/27 14:14:24 [emerg] 8819#0: invalid server name or  
> wildcard "*.apache1.*" on 0.0.0.0:80
>
> Should this work in 0.6.0? If not, will it ever work?
>
> Cheers,
> Igor

Alas that particular question is for Igor (Sysoev) who is on vacation  
until July 3rd.

I believe at the moment you'd have to break it up as separate rules  
for now, eg:
*.apache1.com *.apache1.org *.apache1.net

--
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/20070627/cba85f13/attachment.html>


More information about the nginx mailing list