我知道代理是什么(非常高的水平),只是我从来没有设置过一个代理,感觉我可能会在这里错过一些大的发言。
我的设置:
我正在尝试configuration这三台机器,以便在客户端请求时:
http://proxy/machine1
它得到服务器的网页在服务器的根URL,即
http://server/
我可以访问客户端页面就好了。 但是,当我尝试从客户端机器访问一个页面时,它只是被redirect到服务器的IP地址,这显然无法访问,因为它们不在同一个networking上:
… <meta http-equiv="REFRESH" content="0;url=http://server/machine1"></meta> <title>Redirect</title> …
我的apache2configuration是:
LoadModule proxy_module /modules/mod_proxy.so LoadModule proxy_http_module /modules/mod_proxy_http.so ProxyRequests off <Proxy *> Order Allow,Deny Allow from all </Proxy> ProxyPass /machine1 http://server:80 <Location /machine1> ProxyPassReverse / </Location>
是什么赋予了? 谢谢!
那么事实certificate,configuration是正确的,redirect的问题发生,因为http:// server:80redirect到http:// server:80 /这是造成所有的困惑:)现在似乎工作得很好。