免费注册 查看新帖 |

Chinaunix

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

squid反向代理实现 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-19 16:20 |只看该作者 |倒序浏览
squid。conf的配置如下:

cache_effective_user squid
cache_effective_group squid
maximum_object_size 10 MB
maximum_object_size 512 KB
cache_mem 256 MB
cache_dir ufs /usr/local/squid/var/cache 500 16 256
cache_log /usr/local/squid/var/logs/cache.log
cache_swap_log /usr/local/squid/var/logs/swap.log
#***********************
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl Safe_ports port 8082
visible_hostname 10.57.21.200
http_access allow manager localhost
http_access deny manager
http_access deny to_localhost
http_access deny !Safe_ports
http_access deny all
http_port 8082 vhost vport defaultsite=sina.com.cn
hierarchy_stoplist cgi-bin ?
access_log /usr/local/squid/var/logs/access.log
refresh_pattern ^ftp:                   1440    20%     10080
refresh_pattern ^gopher:                1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?)       0       0%      0
refresh_pattern .                       0       20%     4320
icp_port 0
log_icp_queries off
coredump_dir /usr/local/squid/var/cache
  高手来指点下菜鸟了,是否能实现反向代理
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP