- 论坛徽章:
- 0
|
通过访问192.168.220.100:80跳转到www.hf366.com(124.42.127.2)上!
请问下边的配置squid.conf是否正确?如何改进?
现在访问,跳到www.hf366.com的root下的JBOSS页面上,在HOSTS中设置192.168.220.100 www.hf366.com没有效果,是否是域名指象的问题?
请大家帮忙解答~~~~急~~谢谢!!
##
# 版本: squid-2.6.STABLE13
##
visible_hostname testserver
http_port 192.168.220.100:80 vhost vport
cache_mem 50 MB
cache_dir ufs /home/squid/var/cache 300 16 256
coredump_dir /home/squid/var/cache
cache_swap_low 80
cache_swap_high 85
maximum_object_size 1024 KB
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
# 日志文件路径及格式:
access_log /home/squid/var/logs/access.log common
logfile_rotate 1000
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl all src 0.0.0.0/0.0.0.0
http_access allow all
http_reply_access allow all
icp_access allow all
# 反向代理begin
cache_peer 192.168.220.100 parent 80 0 no-query originserver name=testserver80
cache_peer_domain testserver80 www.hf366.com
# 反向代理end |
|