how to setup proxy server to redirect requests based on domain requested

强颜欢笑 提交于 2019-12-11 15:12:28

问题


I need to setup a proxy server, so that the "real" servers only receive requests from the proxy and no one else.

Basically, somthing like this:

  1. client1 requests someServer1.myproxy.tld
  2. 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?

Thank you


回答1:


Yes, it's possible. You need cache_peer and cache_peer_access directives.

Have a look at this link



来源:https://stackoverflow.com/questions/15230177/how-to-setup-proxy-server-to-redirect-requests-based-on-domain-requested

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!