diff --git a/config/squid.conf b/config/squid.conf old mode 100644 new mode 100755 index 22d3cca..990aea5 --- a/config/squid.conf +++ b/config/squid.conf @@ -5,7 +5,24 @@ auth_param basic realm Squid proxy-caching web server auth_param basic credentialsttl 2 hours acl auth_users proxy_auth REQUIRED http_access allow auth_users +http_access deny all + +# 缓存配置 +cache_dir ufs /var/cache/squid 100 16 256 +cache_mem 256 MB +maximum_object_size 50 MB + +# 日志与PID pid_filename /tmp/squid.pid -cache_log /dev/null -access_log none -cache_store_log none \ No newline at end of file +cache_log /var/log/squid/cache.log +cache_store_log /var/log/squid/store.log + +# 日志轮转设置 +logfile_rotate 10 + +# 自定义日志格式(年月日时分秒) +logformat custom_format %{%Y/%m/%d %H:%M:%S}tl.%03tu %6tr %>a %Ss/%03Hs %a %Ss/%03Hs %