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



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to