如何设置代理服务器以根据请求的域重定向请求 [英] how to setup proxy server to redirect requests based on domain requested
本文介绍了如何设置代理服务器以根据请求的域重定向请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要设置一个代理服务器,以便真正的"服务器只接收来自代理的请求,而不接收其他人的请求.
I need to setup a proxy server, so that the "real" servers only receive requests from the proxy and no one else.
基本上是这样的:
- client1 请求 someServer1.myproxy.tld
myproxy.tld 转发并维护与 someServer1.tld 的回传和转发
- client1 requests someServer1.myproxy.tld
myproxy.tld forwards and maintains comunication back and forward to someServer1.tld
Client1 Client2 Client3
\ | /
\ | /
\ | /
---------------
| myproxy.tld |
---------------
/ | \
/ | \
/ | \
Server1 Server2 Server3
鱿鱼可以这样做吗?如果是,有人可以指出我正确的方向吗?如果不是,哪种工具最适合?
Is this possible with squid? If yes, can someone point me in the right direction? If not, which tool is best suited?
谢谢
推荐答案
是的,这是可能的.您需要 cache_peer 和 cache_peer_access 指令.
Yes, it's possible. You need cache_peer and cache_peer_access directives.
看看这个链接
这篇关于如何设置代理服务器以根据请求的域重定向请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文