Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FreeBSD & nginx
2010/11/23 KaMaToZzz <nginx-forum@xxxxxxxx>:
> Не хочет заводиться nginx:
>
>
> [code]
> fun# /usr/local/etc/rc.d/nginx start
> Performing sanity check on nginx configuration:
> [emerg]: "if" directive is not allowed here in
> /usr/local/etc/nginx/sites-enabled/www:13
> configuration file /usr/local/etc/nginx/nginx.conf test failed
> Starting nginx.
> [emerg]: "if" directive is not allowed here in
> /usr/local/etc/nginx/sites-enabled/www:13
> /usr/local/etc/rc.d/nginx: WARNING: failed to start nginx
> [/code]
>
http://sysoev.ru/nginx/docs/http/ngx_http_rewrite_module.html#if
syntax: if (условие) { ... }
default: нет
context: server, location
Здесь написано, что if может быть только в блоке server или location.
А у вас она в блоке http.
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|