rewrite catch all subdomain
Pedro Axl
lists at ruby-forum.com
Tue Mar 11 15:19:49 MSK 2008
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.
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list