如題: 我有一臺內網WEB服務器192.168.0.1,SQUID外網地址218.77.115.8,我想在這臺服務器上開放多個埠內容,如80和81埠,兩個埠內容不同,需要分別通過域名 test.abc.com 和 test.abc.com:81來進行訪問,請問,應該怎么配置 squid?下面我把我的組態檔列出來,請大家幫忙看看錯在哪里,我這個配置不管是訪問 test.abcd.com 和 test.abcd.com:81 都是顯示 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
http_port 81 accel 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
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/125199.html
標籤:網絡維護與管理
