httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravish Agarwal" <ravish.agar...@gmail.com>
Subject [users@httpd] problem with mod_rewrite rewiterule with [P](internal proxying)
Date Thu, 06 Jul 2006 14:16:54 GMT
Hi All,



We are using apache WebServer version 2.0.55 on HP-UX version 11iand
we are trying to redirect the requests to another WebServer on the
same host



We have made the following entries in the httpd.conf file.



ProxyRequests On

ProxyPass /metso http://mgtpdma3.rau.valmet.com:7003/metso



ProxyPassReverse /metso http://mgtpdma3.rau.valmet.com:7003/metso

SetEnv proxy-nokeepalive 1

ProxyPreserveHost On

RewriteCond %{REQUEST_URI}
(.*\.jsp$)|(.*/servlet/.*)|(.*/workspace/.*)|(.*\.do$)

RewriteRule ^/metso/(.*) http://mgtpdma3.rau.valmet.com:7003/metso/$1 [P].





But this returns the http-404 message. Entries in the rewrite.log says

192.168.251.204 - - [06/Jul/2006:13:08:21 +0300]
[mgtpdma3.rau.valmet.com/sid#400aeb58][rid#4030d888/initial] (2) init
rewrite engine with requested uri /metso/login.jsp

192.168.251.204 - - [06/Jul/2006:13:08:21 +0300]
[mgtpdma3.rau.valmet.com/sid#400aeb58][rid#4030d888/initial] (3)
applying pattern '^/metso/(.*)' to uri '/metso/login.jsp'

192.168.251.204 - - [06/Jul/2006:13:08:21 +0300]
[mgtpdma3.rau.valmet.com/sid#400aeb58][rid#4030d888/initial] (2)
rewrite /metso/login.jsp ->
http://mgtpdma3.rau.valmet.com:7003/metso/login.jsp

192.168.251.204 - - [06/Jul/2006:13:08:21 +0300]
[mgtpdma3.rau.valmet.com/sid#400aeb58][rid#4030d888/initial] (2)
forcing proxy-throughput with
http://mgtpdma3.rau.valmet.com:7003/metso/login.jsp

192.168.251.204 - - [06/Jul/2006:13:08:21 +0300]
[mgtpdma3.rau.valmet.com/sid#400aeb58][rid#4030d888/initial] (1)
go-ahead with proxy request
proxy:http://mgtpdma3.rau.valmet.com:7003/metso/login.jsp [OK]



But the loging page is not shown at all.



However it we remove the [P] tag. Then the external redirection works
fine. But our requirement is to do the redirection through internal
proxy so that end-user does know about the same.



Please help me out.

Thank and Regards
Ravish Agarwal

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message