rewrite catch all subdomain

Cherife Li cherife at dotimes.com
Tue Mar 11 15:37:24 MSK 2008


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
> 
> 
> 
> Igor Sysoev wrote:
>> On Mon, Mar 10, 2008 at 06:17:15PM +0100, Pedro Axl wrote:
>>
>>> I'm not pretty sure what I'm doing, hehe. I have to open a new  server 
>>> {.....} right?
>>>
>>> But If I do it when I try to start nginx I receive this error:
>>> Starting nginx: 2008/03/10 14:22:33 [emerg] 17834#0: directive "server" 
>>> in /etc/nginx/nginx.conf:81 is not allowed here
>> You configuraiton file should have the following structure:
>>
>> http {
>>
>>      server {
>>           location ... {
>>           }
>>
>>           location ... {
>>           }
>>
>>           location ... {
>>           }
>>      }
>>
>>      server {
>>
>>      }
>>
>> You did not close some bracket.
> 

(.*\.)?\.domain\.com

-- 
Rgds,
Cherife.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
URL: <http://nginx.org/pipermail/nginx/attachments/20080311/9e633370/attachment.pgp>


More information about the nginx mailing list