I have simple rule:
- Code: Select all
RewriteEngine On
RewriteRule (.*) http://sap.incenti.pl:8001/$1 [P]
And log is:
- Code: Select all
init rewrite engine with requested uri /sap(bD1wbCZjPTAwMSZkPW1pbg==)/bc/bsp/sap/hcm_learning/leso.htm
pass through /sap(bD1wbCZjPTAwMSZkPW1pbg==)/bc/bsp/sap/hcm_learning/leso.htm
[per-dir c:/www/htdocs/sap/port8001/] add path-info postfix: c:/www/htdocs/sap/port8001/sap(bd1wbczjptawmszkpw1pbg==) -> c:/www/htdocs/sap/port8001/sap(bd1wbczjptawmszkpw1pbg==)/bc/bsp/sap/hcm_learning/leso.htm
[per-dir c:/www/htdocs/sap/port8001/] strip per-dir prefix: c:/www/htdocs/sap/port8001/sap(bd1wbczjptawmszkpw1pbg==)/bc/bsp/sap/hcm_learning/leso.htm -> sap(bd1wbczjptawmszkpw1pbg==)/bc/bsp/sap/hcm_learning/leso.htm
[per-dir c:/www/htdocs/sap/port8001/] applying pattern '(.*)' to uri 'sap(bd1wbczjptawmszkpw1pbg==)/bc/bsp/sap/hcm_learning/leso.htm'
[per-dir c:/www/htdocs/sap/port8001/] rewrite sap(bd1wbczjptawmszkpw1pbg==)/bc/bsp/sap/hcm_learning/leso.htm -> http://xxx.yyy.pl:8001/sap(bd1wbczjptawmszkpw1pbg==)/bc/bsp/sap/hcm_learning/leso.htm
[per-dir c:/www/htdocs/sap/port8001/] forcing proxy-throughput with http://xxx.yyy.pl:8001/sap(bd1wbczjptawmszkpw1pbg==)/bc/bsp/sap/hcm_learning/leso.htm
[per-dir c:/www/htdocs/sap/port8001/] go-ahead with proxy request proxy:http://xxx.yyy.pl:8001/sap(bd1wbczjptawmszkpw1pbg==)/bc/bsp/sap/hcm_learning/leso.htm [OK]
As U see rewrite is changing some part of URI to lowercase. Why?
When I will make ProxyPass / it works perfectly, but I will need some more complicated Rules for that reverse proxy and need to use RewriteRule and RewriteCond.
Rgds, W.