如何设置代理服务器以根据请求的域重定向请求

编程入门 行业动态 更新时间:2024-10-11 19:13:47
本文介绍了如何设置代理服务器以根据请求的域重定向请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要设置一个代理服务器,以便真正的"服务器只接收来自代理的请求,而不接收其他人的请求.

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.

    看看这个链接

    更多推荐

    如何设置代理服务器以根据请求的域重定向请求

    本文发布于:2023-07-14 20:06:48,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1106713.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:代理服务器   如何设置   重定向

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!