Welcome! Log In Create A New Profile

Advanced

Re: rewrite cycle

Руслан Закиров
December 15, 2016 10:12AM
On Thu, Dec 15, 2016 at 5:08 PM, Maxim Dounin <mdounin@mdounin.ru> wrote:

> [...]
>
> > 2016/12/15 14:24:02 [notice] 15695#0: *6 rewritten data:
> "/bin/view/Main/WebHome", ...
>
> [...]
>
> > 2016/12/15 14:24:02 [debug] 15695#0: *6 test location: ~ "^/([A-Z_].*)$"
> > 2016/12/15 14:24:02 [debug] 15695#0: *6 using configuration
> "^/([A-Z_].*)$"
>
> The configuration in question relies on case-sensitive location
> matching and won't work correctly with case-insensitive location
> matching nginx uses on Windows and macOS. As per the debug log,
> it looks like case-insensitive location matching is used in your
> case.
>

Yep, it's Mac OS. Solved by turning off case insensitivity with (?-i).

location ~ ^(?-i)/[A-Z_].*$ {
....
}

Didn't know about this aspect of nginx on Mac and Win.

--
Руслан Закиров
Руководитель отдела разработки веб-сервисов
+7(916) 597-92-69, ruz @ http://www.sports.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

rewrite cycle

Руслан Закиров December 15, 2016 06:32AM

Re: rewrite cycle

Francis Daly December 15, 2016 08:20AM

Re: rewrite cycle

Francis Daly December 29, 2016 06:00AM

Re: rewrite cycle

Maxim Dounin December 15, 2016 09:10AM

Re: rewrite cycle

Руслан Закиров December 15, 2016 10:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready