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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]