1

我有一个 Apache 网络服务器。现在用户可以访问 apache 前端 url,即:

http://192.168.32.32

现在,当用户访问该 url 时,apache 应该自动将他重定向到一个新的 url,但通过特定端口上的代理服务器:192.169.34.34 3128

重定向url只能通过代理服务器访问,apache可以访问代理服务器,因为它们在同一个域中。

你如何在apache中做到这一点?

谢谢!

4

1 回答 1

0

I am not 100% certain on what you want to do, but I think what you are after can be achieved with mod_proxy in combination with mod_rewite. I could be that you only need mod_proxy, I guess it depends on how much tuning options you want.

Maybe ProxyPassReverse is what you are after?

于 2013-09-10T07:51:57.263 回答