rewrite catch all subdomain

Igor Sysoev is at rambler-co.ru
Tue Mar 11 15:43:45 MSK 2008


On Tue, Mar 11, 2008 at 01:19:49PM +0100, Pedro Axl wrote:

> Now I think the structure is ok, but I receive another error:
> 
> Starting nginx: 2008/03/11 09:21:07 [emerg] 25934#0: first server name 
> "*.domain.com" must not be wildcard in /etc/nginx/nginx.conf:145

The first name in server_name could be wildcard since 0.6.25 only.
In early verisons use

server_name  www.domain.com  *.domain.com;


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





More information about the nginx mailing list