httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Arts <ron.a...@neonova.nl>
Subject [users@httpd] reverse proxying to dynamically determined hosts
Date Sat, 06 May 2006 22:42:18 GMT
Hi,

I am trying to accomplish the following:

translate

   http://<myhost>/device/<anotherhost>/pathinfo

to a reverse proxy request to

   http://<anotherhost>/pathinfo

ProxyPass and ProxyReversePass are no good obviously,
so I am experimenting with mod_rewrite. But this:

<Directory /usr/local/prod/web/html>
   RewriteEngine on
   RewriteRule ^dev/([0-9.]*)/(.*)  http://$1/$2 [P]
</Directory>


does not work. In fact I can't even get

RewriteRule ^dev/192.168.170.212/(.*)  http://192.168.170.212/$1 [P]

to work, because it redirects instead of proxies...
How would redirects from the remote host be handled in this case?

Thanks for any insights.

Ron




Mime
View raw message