httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravish Agarwal" <>
Subject [users@httpd] problem with mod_rewrite rewiterule with [P](internal proxying)
Date Fri, 07 Jul 2006 07:11:17 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

ProxyPassReverse /metso

SetEnv proxy-nokeepalive 1

ProxyPreserveHost On

RewriteCond %{REQUEST_URI}

RewriteRule ^/metso/(.*)$1 [P].

But this returns the http-404 message. Entries in the rewrite.log says - - [06/Jul/2006:13:08:21 +0300]
[][rid#4030d888/initial] (2) init
rewrite engine with requested uri /metso/login.jsp - - [06/Jul/2006:13:08:21 +0300]
[][rid#4030d888/initial] (3)
applying pattern '^/metso/(.*)' to uri '/metso/login.jsp' - - [06/Jul/2006:13:08:21 +0300]
[][rid#4030d888/initial] (2)
rewrite /metso/login.jsp -> - - [06/Jul/2006:13:08:21 +0300]
[][rid#4030d888/initial] (2)
forcing proxy-throughput with - - [06/Jul/2006:13:08:21 +0300]
[][rid#4030d888/initial] (1)
go-ahead with proxy request
proxy: [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.

 httpd -I shows the following output.
$ ./httpd -l
Compiled in modules:
Do we need to have mod_proxy.c as a compiled module for this
functionality with apache 2.0.55???

Please help me out.

Thanks and regards


Thank and Regards
Ravish Agarwal

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message