Skip to content

Instantly share code, notes, and snippets.

@pensz
Last active December 14, 2015 09:08
Show Gist options
  • Save pensz/5062178 to your computer and use it in GitHub Desktop.
Save pensz/5062178 to your computer and use it in GitHub Desktop.
配置一个简单的squid http 代理
1. 修改acl
http_access allow all
2. 修改可以缓存文件的大小限制
maximum_object_size 400000 KB
3. 修改cache的目录, 目录接着后面的那个缓存目录的大小
cache_dir ufs /var/spool/squid3 10000 16 256
4. 修改refresh pattern,默认的很坑
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment