Rewrite before regex location

Robert Paprocki rpaprocki at fearnothingproductions.net
Fri May 6 22:29:07 UTC 2016


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 <joyce at joycebabu.com> wrote:

> Oops! The local configuration was *location ^~ @rewrite_news {...}*
>
> On Sat, May 7, 2016 at 3:54 AM, Joyce Babu <joyce at joycebabu.com> 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
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160506/57fb7979/attachment.html>


More information about the nginx mailing list