Possible rewrite regular expression bug?

Igor Sysoev is at rambler-co.ru
Tue Jun 24 19:55:16 MSD 2008


On Tue, Jun 24, 2008 at 05:47:32PM +0200, Peter Hoang wrote:

> Thanks guys. I have to say NGINX has a more active community than 
> Lighttpd. Two more questions, is there something similar to 
> AllowEncodedSlashes and how do I enable rewrite debug in NGINX? Without 
> AllowEncodedSlashes, the following rewrite rule:
> 
> rewrite ^/([^\-]+)-([^/]*)\.html$ /j?$1=$2 last;
> 
> doesn't work with urls such as: 
> http://localhost/q-test/jt-test1%2Ftest2.html (notice %2F which is the 
> encoded value of '/').

There is no analog of AllowEncodedSlashes. nginx always decodes
quote-printables in URI part.

rewrite debug is:

error_log  /path/to/error.log  notice;

http {
   server {
       rewrite_log  on;


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list