Welcome! Log In Create A New Profile

Advanced

Re: FreeBSD & nginx

Sergey Shepelev
November 23, 2010 08:38AM
2010/11/23 KaMaToZzz <nginx-forum@nginx.us>:
> Не хочет заводиться 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@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

FreeBSD & nginx

KaMaToZzz November 23, 2010 07:20AM

Re: FreeBSD & nginx

Alexander Petrovsky November 23, 2010 07:28AM

Re: FreeBSD & nginx

Sergey Shepelev November 23, 2010 07:30AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 07:39AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 07:58AM

Re: FreeBSD & nginx

Дмитрий Андреев November 23, 2010 07:46AM

Re: FreeBSD & nginx

Sergey Shepelev November 23, 2010 07:46AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 08:31AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 08:48AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 08:58AM

Re: FreeBSD & nginx

Anton Yuzhaninov November 23, 2010 08:38AM

Re: FreeBSD & nginx

Sergey Shepelev November 23, 2010 08:38AM

Re: FreeBSD & nginx

DeD MustDIE November 23, 2010 09:08AM

Re: FreeBSD & nginx

Anton Gorlov November 23, 2010 09:32AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 09:48AM

Re: FreeBSD & nginx

Sergey Averyanov November 23, 2010 09:54AM

Re: FreeBSD & nginx

Sergey Shepelev November 23, 2010 10:08AM

Re: FreeBSD & nginx

KaMaToZzz November 23, 2010 10:27AM

Re: FreeBSD & nginx

Валентин Бартенев November 23, 2010 11:08AM

Re: FreeBSD & nginx

KaMaToZzz November 25, 2010 02:21AM

Re: FreeBSD & nginx

xpahos@gmail.com November 25, 2010 04:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 53
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready