|
|
我在192.168.1.249上装了squid,250上装了resin,在249上的/etc/hosts文件里已经加入了对域名www.typhoon.com的解析192.168. ... 高手指点:)
http_port 192.168.1.249:80
icp_port 0
cache_effective_user squid
cache_effective_group squid
visible_hostname cache.typhoon.com
cache_dir aufs /cache 4096 16 256
cache_access_log /usr/local/typhoon/squid/var/logs/cache.log
cache_log /usr/local/typhoon/squid/var/logs/cache.log
cache_mem 250 MB
cache_swap_low 80
cache_swap_high 90
maximum_object_size 2048 KB
# minimum_object_size 16 KB
maximum_object_size_in_memory 50 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
cache_store_log none
cache_replacement_policy lru
memory_replacement_policy lru
request_header_max_size 10 KB
dns_children 30
hosts_file /etc/hosts
refresh_pattern -i .htm 60 50% 120 reload-into-ims
refresh_pattern -i .html 60 50% 120 reload-into-ims
refresh_pattern -i .gif 60 50% 120 reload-into-ims
refresh_pattern -i .swf 60 50% 120 reload-into-ims
refresh_pattern -i .jpg 60 50% 120 reload-into-ims
refresh_pattern -i .jpeg 60 50% 120 reload-into-ims
refresh_pattern -i .png 60 50% 120 reload-into-ims
refresh_pattern . 0 20% 120 reload-into-ims
strip_query_terms off
connect_timeout 1 minute
read_timeout 5 minutes
pconn_timeout 60 seconds
request_timeout 30 seconds
#persistent_request_timeout 1 minute
client_lifetime 20 minutes
half_closed_clients off
quick_abort_min -1
#quick_abort_min 10 KB
#quick_abort_max 10 KB
#quick_abort_pct 95
cache_mgr typhoon_1983@163.com
cachemgr_passwd typhoon localhost
httpd_accel_host 192.168.1.250
httpd_accel_single_host off
httpd_accel_port 80
httpd_accel_uses_host_header on
httpd_accel_with_proxy on
acl manager proto cache_object
acl conncount maxconn 30
acl permit method GET POST
acl acceleratedHost dstdomain .typhoon.com
acl acceleratedProtocol protocol HTTP
acl acceleratedPort port 80
acl all src 0.0.0.0/0.0.0.0
acl local src 127.0.0.1/32
httpd_accel_host virtual
http_access deny conncount
http_access allow manager local
http_access deny !permit
http_access allow acceleratedProtocol acceleratedPort acceleratedHost
http_access deny all
logfile_rotate 3
forwarded_for on
还有,想问一下,squid配好后,http://squid的ip,至少会出 ... ?非常感谢! |
|