Re: [users@httpd] reverse proxying to dynamically determined hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/7/06, Ron Arts <ron.arts@xxxxxxxxxx> wrote:
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?

You have a [P] at the end. So it is supposed to proxy, and not to
redirect. If your server however does redirect than there might be
something else in your config doing that.

Have you tried running with a rewrite log?

Krist


--
krist.vanbesien@xxxxxxxxx
Solothurn, Switzerland

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux