https://bz.apache.org/bugzilla/show_bug.cgi?id=60440
--- Comment #2 from Christopher Head <ch...@chead.ca> --- Here are some log lines taken with rewrite:trace8 for a request to https://test.example.com/test.html (I anonymized the server name and my own client IP address, but nothing else has been changed) using an all-lowercase map, which succeeds (CURL indicates that a 302 is sent with the location /test.html, as expected): [Sat Dec 17 12:53:52.481799 2016] [rewrite:trace2] [pid 18625:tid 140248097462016] mod_rewrite.c(477): [client 123.123.123.123:42252] 123.123.123.123 - - [test.example.com/sid#a33370][rid#7f8df8012260/initial] init rewrite engine with requested uri /test.html [Sat Dec 17 12:53:52.481849 2016] [rewrite:trace3] [pid 18625:tid 140248097462016] mod_rewrite.c(477): [client 123.123.123.123:42252] 123.123.123.123 - - [test.example.com/sid#a33370][rid#7f8df8012260/initial] applying pattern '/(.*)$' to uri '/test.html' [Sat Dec 17 12:53:52.482238 2016] [rewrite:trace5] [pid 18625:tid 140248097462016] mod_rewrite.c(477): [client 123.123.123.123:42252] 123.123.123.123 - - [test.example.com/sid#a33370][rid#7f8df8012260/initial] SQL map lookup OK: map mymap key=test.html, val=test.html [Sat Dec 17 12:53:52.482262 2016] [rewrite:trace2] [pid 18625:tid 140248097462016] mod_rewrite.c(477): [client 123.123.123.123:42252] 123.123.123.123 - - [test.example.com/sid#a33370][rid#7f8df8012260/initial] rewrite '/test.html' -> '/test.html' [Sat Dec 17 12:53:52.482289 2016] [rewrite:trace2] [pid 18625:tid 140248097462016] mod_rewrite.c(477): [client 123.123.123.123:42252] 123.123.123.123 - - [test.example.com/sid#a33370][rid#7f8df8012260/initial] explicitly forcing redirect with https://test.example.com/test.html [Sat Dec 17 12:53:52.482305 2016] [rewrite:trace1] [pid 18625:tid 140248097462016] mod_rewrite.c(477): [client 123.123.123.123:42252] 123.123.123.123 - - [test.example.com/sid#a33370][rid#7f8df8012260/initial] escaping https://test.example.com/test.html for redirect [Sat Dec 17 12:53:52.482321 2016] [rewrite:trace1] [pid 18625:tid 140248097462016] mod_rewrite.c(477): [client 123.123.123.123:42252] 123.123.123.123 - - [test.example.com/sid#a33370][rid#7f8df8012260/initial] redirect to https://test.example.com/test.html [REDIRECT/302] Here are some log lines with mymap changed to myMap, which fails (CURL indicates that a 302 is sent but with location /): [Sat Dec 17 12:55:53.361498 2016] [rewrite:trace2] [pid 18735:tid 140247996299008] mod_rewrite.c(477): [client 123.123.123.123:42274] 123.123.123.123 - - [test.example.com/sid#a11140][rid#7f8df8012260/initial] init rewrite engine with requested uri /test.html [Sat Dec 17 12:55:53.361548 2016] [rewrite:trace3] [pid 18735:tid 140247996299008] mod_rewrite.c(477): [client 123.123.123.123:42274] 123.123.123.123 - - [test.example.com/sid#a11140][rid#7f8df8012260/initial] applying pattern '/(.*)$' to uri '/test.html' [Sat Dec 17 12:55:53.461887 2016] [rewrite:trace5] [pid 18735:tid 140247996299008] mod_rewrite.c(477): [client 123.123.123.123:42274] 123.123.123.123 - - [test.example.com/sid#a11140][rid#7f8df8012260/initial] SQL map lookup FAILED: map myMap key=test.html [Sat Dec 17 12:55:53.461907 2016] [rewrite:trace2] [pid 18735:tid 140247996299008] mod_rewrite.c(477): [client 123.123.123.123:42274] 123.123.123.123 - - [test.example.com/sid#a11140][rid#7f8df8012260/initial] rewrite '/test.html' -> '/' [Sat Dec 17 12:55:53.461923 2016] [rewrite:trace2] [pid 18735:tid 140247996299008] mod_rewrite.c(477): [client 123.123.123.123:42274] 123.123.123.123 - - [test.example.com/sid#a11140][rid#7f8df8012260/initial] explicitly forcing redirect with https://test.example.com/ [Sat Dec 17 12:55:53.461938 2016] [rewrite:trace1] [pid 18735:tid 140247996299008] mod_rewrite.c(477): [client 123.123.123.123:42274] 123.123.123.123 - - [test.example.com/sid#a11140][rid#7f8df8012260/initial] escaping https://test.example.com/ for redirect [Sat Dec 17 12:55:53.461952 2016] [rewrite:trace1] [pid 18735:tid 140247996299008] mod_rewrite.c(477): [client 123.123.123.123:42274] 123.123.123.123 - - [test.example.com/sid#a11140][rid#7f8df8012260/initial] redirect to https://test.example.com/ [REDIRECT/302] Here is the contents of the relevant VirtualHost entry: ServerAdmin webmas...@example.com DocumentRoot "/var/www/test.example.com/htdocs" <Directory /var/www/test.example.com/htdocs> Require all granted </Directory> DBDriver pgsql DBDParams "postgresql://apache@/mydb" RewriteEngine on RewriteMap mymap "dbd:SELECT %s" RewriteRule "/(.*)$" /${mymap:$1} [R] LogLevel rewrite:trace8 -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org For additional commands, e-mail: docs-h...@httpd.apache.org