Home > other >  Ask: how about squid configuration can reverse proxy with different port access domain name
Ask: how about squid configuration can reverse proxy with different port access domain name

Time:10-11

Such as: I have a 192.168.0.1 Intranet WEB server, WEB address 218.77.115.8 squids, I want to open multiple ports on the server, such as ports 80 and 81, two ports content is different, need through the domain name test.abc.com and test.abc.com respectively: 81 to visit, excuse me, how should the SQUID configuration? I put my configuration files listed below, please help to see what went wrong, I this configuration whether visit test.abcd.com and test.abcd.com: 81 is showing content on test.abcd.com,
Http_port 218.77.115.8:80 accel vhost vport=80
Http_port 218.77.115.8:81 accel vhost vport=81
Cache_peer 192.168.0.1 parent 80 0 no - query originserver name=DJ
Cache_peer_domain DJ test.abcd.com
Cache_peer_access DJ allow all
81 accel http_port vhost vport=81
Cache_peer 192.168.0.1 parent 81 0 no - query originserver name=dj81
Cache_peer_domain dj81 test.abcd.com
Cache_peer_access dj81 allow all
  • Related