See http://nginx.org/en/docs/http/ngx_http_core_module.html#location:

'The “@” prefix defines a named location. Such a location is not used for a
regular request processing, but instead used for request redirection. They
cannot be nested, and cannot contain nested locations.'

On Fri, May 6, 2016 at 3:27 PM, Joyce Babu <[email protected]> wrote:

> Oops! The local configuration was *location ^~ @rewrite_news {...}*
>
> On Sat, May 7, 2016 at 3:54 AM, Joyce Babu <[email protected]> wrote:
>
>> It is working fine on my mac. But when I try to use it on my Cent OS
>> server, it is failing with error
>>
>> nginx: [emerg] location "[^/]\.php$" cannot be inside the named location
>> "@rewrite_news"
>>
>> Both are running version 1.10.0 :(
>>
>
>
> _______________________________________________
> nginx mailing list
> [email protected]
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to