Welcome! Log In Create A New Profile

Advanced

Re: Strange rewrite_by_lua outcome

Nginx User
October 17, 2011 01:56PM
On 17 October 2011 20:45, Tim Mensch <tim-nginx@bitgems.com> wrote:
> On 10/17/2011 10:33 AM, Nginx User wrote:
>> Let me get this right. Do I need to always escape the "\" inserted
>> to escape "." in "\." in lua and then add another couple of "\"s?
>> I.E., do I need to do "sqlpatch\\\\.php" to get "sqlpatch\.php"
>> passed to the regex finally? IOW, do I basically replace each "\"
>> with "\\\\"?
>
> Yes.
Thanks. I had done that anyway and got expected results. Not strictly
changing "\" to "\\\\". It was "\\" to "\\\\\" & "\" to "\\\\"
>
>> If I understand agentzh, the rewrite module handles this behind the
>> scenes and allows us to use familiar syntax. Is that right?
>
> The rewrite module apparently changes how the string is parsed in the Nginx
> file, yes.
Very thoughtful.

Cheers.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Strange rewrite_by_lua outcome

Nginx User October 16, 2011 04:12PM

Re: Strange rewrite_by_lua outcome

agentzh October 16, 2011 08:56PM

Re: Strange rewrite_by_lua outcome

Nginx User October 17, 2011 12:48AM

Re: Strange rewrite_by_lua outcome

Nginx User October 17, 2011 12:52AM

Re: Strange rewrite_by_lua outcome

Tim Mensch October 17, 2011 01:04AM

Re: Strange rewrite_by_lua outcome

Nginx User October 17, 2011 12:34PM

Re: Strange rewrite_by_lua outcome

Tim Mensch October 17, 2011 01:46PM

Re: Strange rewrite_by_lua outcome

Nginx User October 17, 2011 01:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
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