Compile nginx 1.4.7 --with-http_rewrite_module Error

Valentin V. Bartenev vbart at
Tue May 13 07:15:18 UTC 2014

On Tuesday 13 May 2014 13:34:11 gaoping at wrote:
> Think you
>     But If I turn off the words,I have no way is to use  'if' order.An error
> occurred : [emerg] 14499#0: unknown directive "if($remote_addr" in
> /usr/local/nginx1/conf/nginx.conf:46
There is no directive "if($remote_addr" in nginx.

Evidently you have missed a space after the "if" directive.

  wbr, Valentin V. Bartenev

More information about the nginx mailing list