Hi, All
I used httpclient to imitate a request to squid , but the response page had not stored by squid although response header is 200. I had tried many times with three different pages . only one can be stored by the squid cache. and the others must need to send requset by brower then they were cached. I had checked the access.log , it show me like this.
1513148548.653 9172 10.112.4.54 TCP_MISS_ABORTED/200 106197 GET http://youlun.lvmama.com/ship_front/youlun/1012487 - FIRSTUP_PARENT/10.112.4.54 text/html
do you know what's wrong of my squid.conf ? need your help !
below is my squid.conf
acl gsrc src 10.112.4.54 10.113.10.191
acl gdst dst 10.112.4.54 10.113.10.191
http_access allow gsrc
http_access allow gdst
acl gdst dst 10.112.4.54 10.113.10.191
http_access allow gsrc
http_access allow gdst
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
acl purge method PURGE
acl clientServers src 10.112.4.54
http_access allow purge clientServers
http_access deny purge
acl gat method GET
acl clientS src 10.112.4.54 10.113.10.190
http_access allow gat clientS
#http_access deny gat
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 3130 # icp
acl Safe_ports port 3128
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 3130 # icp
acl Safe_ports port 3128
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_port 80 accel defaultsite=youlun.lvmama.com no-vhost
cache_dir aufs /var/spool/squid 8198 16 256
cache_mem 5120 MB
cache_swap_low 90
cache_swap_high 95
cache_mgr zhongzhe@xxxxxxxxxx
visible_hostname cache190
#cache_peer 10.113.10.191 sibling 80 3130 allow-miss proxy-only name=cache.neighbor
#cache_peer_access cache.neighbor allow all
#acl fromPeer src 10.113.10.191
#cache_peer_access cache.neighbor deny fromPeer
coredump_dir /var/spool/squid
via off
maximum_object_size 500 KB
icp_port 3130
icp_access allow all
icp_query_timeout 2000
cache_peer 10.112.4.54 parent 8090 0 no-query originserver name=youlun
acl mysites dstdomain youlun.lvmama.com
http_access allow mysites
cache_peer_access youlun allow all
cache_peer_access youlun deny all
refresh_pattern -i .*/youlun/([0-9]+) 1440 100% 10080 ignore-no-store ignore-must-revalidate store-stale ignore-reload
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
log_icp_queries off
cache_dir aufs /var/spool/squid 8198 16 256
cache_mem 5120 MB
cache_swap_low 90
cache_swap_high 95
cache_mgr zhongzhe@xxxxxxxxxx
visible_hostname cache190
#cache_peer 10.113.10.191 sibling 80 3130 allow-miss proxy-only name=cache.neighbor
#cache_peer_access cache.neighbor allow all
#acl fromPeer src 10.113.10.191
#cache_peer_access cache.neighbor deny fromPeer
coredump_dir /var/spool/squid
via off
maximum_object_size 500 KB
icp_port 3130
icp_access allow all
icp_query_timeout 2000
cache_peer 10.112.4.54 parent 8090 0 no-query originserver name=youlun
acl mysites dstdomain youlun.lvmama.com
http_access allow mysites
cache_peer_access youlun allow all
cache_peer_access youlun deny all
refresh_pattern -i .*/youlun/([0-9]+) 1440 100% 10080 ignore-no-store ignore-must-revalidate store-stale ignore-reload
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
log_icp_queries off
http_access allow all
http_access deny all
http_access deny all
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users