您的位置:首页 > 运维架构 > 反向代理

linux下安装squid代理服务器

2015-06-10 00:43 387 查看
1.实验原理:

客户端的请求会先到代理服务器,代理服务器根据自己的acl来判断是否去请求WEB服务器。如果请求WEB服务器,会在自己硬盘建立缓存,如果有下次同样的请求,会直接从自己的缓存来返回



2.具体操作:

















/etc/squid/squid.conf内容:

http_port 3128
cache_mem 128 MB
cache_dir ufs /var/spool/squid 4096 16 256
cache_effective_user squid
cache_effective_group squid
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
visible_hostname squid_server
cache_mgr wangquannetwork@163.com
acl wang_acl src all
http_access allow wang_acl




















注意:以上内容均为原创作品 转载请注明出处/article/9906790.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: