WINDOWS下squid设置反向代理(同时具备内网代理)

squid.conf的配置内容

########## Base control ##########
cache_mgr webmaster
cache_effective_user squid
cache_effective_group squid
visible_hostname www.jsp.net.ru
http_port 80
icp_port 0
cache_dir ufs c:\squid/cache 300 16 256
cache_access_log c:\squid/null
cache_log c:\squid/null
cache_store_log c:\squid/null
mime_table c:\squid/etc/mime.conf
coredump_dir c:\squid/squid/cache
pid_filename c:\squid/logs/squid.pid

########## Performance control ##########
cache_mem 8 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
cache_replacement_policy lru
memory_replacement_policy lru
emulate_httpd_log off
log_ip_on_direct on
log_mime_hdrs off
dns_timeout 2 minutes
request_header_max_size 10 KB
request_body_max_size 0 KB
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
negative_ttl 5 minutes
positive_dns_ttl 6 hours
negative_dns_ttl 1 minute
connect_timeout 1 minute
read_timeout 15 minutes
request_timeout 5 minutes
client_lifetime 1 day
half_closed_clients on
maximum_single_addr_tries 1
uri_whitespace strip
ie_refresh off

########## Access control ############
acl all src 0.0.0.0/0.0.0.0
http_access allow all
http_reply_access allow all
hierarchy_stoplist cgi-bin ?

########## Accelator control ############
httpd_accel_host localhost
httpd_accel_port 8080
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

########## Misc control ###########
ftp_user Squid@
ftp_list_width 32
ftp_passive on
ftp_sanitycheck on

版权声明:
作者:Kiyo
链接:https://www.wkiyo.cn/html/2008-01/i424.html
来源:Kiyo's space
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>