Re: How to define multiple paths for ProxyPass and ProxyPassReverse?

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

 



Qingshan Xie wrote:
Hi! all,

   In Apache/2.0.59, if I need to specify multiple
paths for  "ProxyPass and ProxyPassReverse", for
example, I need to proxy 3 paths /A, /B, /C to
http://www.foo.com
do I need to configure them as,
......
ProxyPass: /A http://www.foo.com
ProxyPassReverse: /A http://www.foo.com
ProxyPass: /B http://www.foo.com
ProxyPassReverse: /B http://www.foo.com
ProxyPass: /C http://www.foo.com
ProxyPassReverse: /C http://www.foo.com
...... ?

If a hundred paths need to be defined, any simple way?
---------------- End original message. ---------------------

You can use a rewrite rule to handle the forward proxy using the [P] flag to proxy the request. However, I do not know how to do this for the reverse proxy using mod_rewrite.

There is a small discussion on how to do this in the Apache documentation on mod_rewrite on the Apache web site.


Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
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