如何设置apache的反向代理,实现web请求的转发?
系统:
机子A:windows2000 server apache2.0.52 ip:192.168.254.205
机子B:windows2000 server tomcat4.1.31 ip:172.16.8.200
现在能通过 http://172.16.8.200 能访问机子B上的WEB服务
请问:如何才能 使得 通过http://192.168.254.205 也能访问 机子B上的WEB服务
即 我能通过http://192.168.254.205 或 http://172.16.8.200 能看到同样的内容
看网上介绍,可以设置 虚拟主机解决,我在http.conf 中设置后,出现这个页面
Forbidden
You don't have permission to access / on this server.
--------------------------------------------------------------------------------
Apache/2.0.52 (Win32) Server at 172.16.7.7 Port 80
请问这是为什么?
我的http.conf 修改部分:
NameVirtualHost 192.168.254.205
<VirtualHost 192.168.254.205>
ServerAdmin admin@htffunf.com
ServerName lxf.htffund.com
ProxyPass / http://172.16.8.200/
ProxyPassReverse / http://172.16.8.200/
ErrorLog logs/www.htffund.com-error_log
CustomLog logs/www.htffund.com-access_log common
</VirtualHost>