免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2270 | 回复: 0
打印 上一主题 下一主题

[proxy] SQUID设置问题~~~急!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-21 19:50 |只看该作者 |倒序浏览
通过访问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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP