LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1452|回复: 1

誰有squid.conf,发一份给我,我想看看

[复制链接]
发表于 2005-4-30 20:30:31 | 显示全部楼层 |阅读模式
我现在在家里,没有装LINUX
发表于 2005-5-6 16:55:18 | 显示全部楼层

  1. http_port ip:3128
  2. hierarchy_stoplist cgi-bin ?
  3. acl QUERY urlpath_regex cgi-bin \?
  4. httpd_accel_host virtual
  5. httpd_accel_port 80
  6. httpd_accel_uses_host_header on
  7. httpd_accel_single_host off
  8. httpd_accel_with_proxy on
  9. cache_dir aufs /var/spool/squid 2048 16 256
  10. cache_mgr your@mail
  11. cache_mem 128 MB
  12. cache_swap_low 90
  13. cache_swap_high 95
  14. maximum_object_size 4096 KB
  15. maximum_object_size_in_memory 64 KB
  16. ipcache_size 4096
  17. ipcache_low 90
  18. ipcache_high 95
  19. cache_access_log /var/log/squid/access.log
  20. cache_log /var/log/squid/cache.log
  21. cache_store_log /var/log/squid/store.log
  22. log_ip_on_direct on
  23. unlinkd_program /usr/lib/squid/unlinkd
  24. cache_effective_user squid
  25. cache_effective_group squid
  26. acl all src 0.0.0.0/0.0.0.0
  27. acl manager proto cache_object
  28. acl localhost src 127.0.0.1/255.255.255.255
  29. acl our_networks src 172.16.1.0/255.255.255.0
  30. acl to_localhost dst 127.0.0.0/8
  31. acl SSL_ports port 443 563
  32. acl Safe_ports port 80
  33. acl Safe_ports port 81
  34. acl Safe_ports port 82
  35. acl Safe_ports port 21
  36. acl Safe_ports port 443 563
  37. acl Safe_ports port 70
  38. acl Safe_ports port 210
  39. acl Safe_ports port 1025-65535
  40. acl Safe_ports port 280
  41. acl Safe_ports port 488
  42. acl Safe_ports port 591
  43. acl Safe_ports port 777
  44. acl Safe_ports port 5500
  45. acl Safe_ports port 5560
  46. acl Safe_ports port 3128
  47. acl CONNECT method CONNECT
  48. no_cache deny QUERY
  49. # Only allow cachemgr access from localhost
  50. http_access allow manager localhost
  51. http_access deny manager
  52. # Deny requests to unknown ports
  53. http_access deny !Safe_ports
  54. # Deny CONNECT to other than SSL ports
  55. http_access deny CONNECT !SSL_ports
  56. #http_access allow our_networks
  57. http_access allow our_networks

  58. # And finally deny all other access to this proxy
  59. http_access allow localhost
  60. http_access deny all
  61. #http_access allow all

  62. coredump_dir /var/spool/squid
  63. dns_nameservers 172.16.1.254 210.12.168.12 61.139.2.69
  64. ftp_list_width 96
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表