Search squid archive

Zero hit rate on reverse proxy server with Squid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm attempting to setup squid as a reverse proxy, but appear to be failing rather miserably. Whenever I attempt to get a file, I either get a TCP_MISS/304 or TCP_MISS/200 . .I've never actually seen a hit, and every time I try to retrieve a file, the file gets pulled from the webserver behind squid. I'd appreciate any help.

On the front end i'm running squid2.5-STABLE13. On the backend, Apache 1.3.34.


Here's what I'm seeing in access.log :

1147659469.909 18 adsl-71-134-224-41.dsl.pltn13.pacbell.net TCP_MISS/304 245 GET http://squidtest.bitpusher.com/ 78/31/00/5db751d7d1355191556c70570974a13793ca2468/9a6c2cb08bc0ea681a88bf 03df96132eb993b150-s.gif - DIRECT/10.0.6.130 - [Host: squidtest.bitpusher.com\r\nUser-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7\r \nAccept: text/xml,application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nConnection: keep- alive\r\nIf-Modified-Since: Fri, 12 May 2006 20:17:01 GMT\r\nIf-None- Match: "d8e8367-183a-4464ed3d"\r\nAuthorization: Basic Yml0cHVzaGVyOmJwYmVhbnM=\r\nCache-Control: max-age=0\r\n] [HTTP/1.1 304 Not Modified\r\nDate: Mon, 15 May 2006 02:17:26 GMT\r\nServer: Apache/1.3.34 (Unix) PHP/5.1.2 mod_ssl/2.8.25 OpenSSL/0.9.7d\r \nConnection: Keep-Alive, Keep-Alive\r\nKeep-Alive: timeout=15, max=99 \r\nETag: "d8e8367-183a-4464ed3d"\r\n\r]

Here's what I'm seeing in store.log:

1147659869.335 RELEASE -1 FFFFFFFF DDE4FBFAA7A5BC66BBE11343686BAF14 200 1147659845 1147465021 -1 image/gif 6202/6202 GET http:// squidtest.bitpusher.com/ 78/31/00/5db751d7d1355191556c70570974a13793ca2468/9a6c2cb08bc0ea681a88bf 03df96132eb993b150-s.gif

Here's what I'm seeing in cache.log:
c2cb08bc0ea681a88bf03df96132eb993b150-s.gif is ALLOWED, because it matched 'OriginPort' 2006/05/14 19:25:03| The reply for GET http://squidtest.bitpusher.com/ 78/31/00/5db751d7d1355191556c70570974a13793ca2468/9a6c2cb08bc0ea681a88bf 03df96132eb993b150-s.gif is ALLOWED, because it matched 'All'

Here's my squid.conf:

cache_effective_user squid
mime_table /etc/squid/mime.conf
cache_dir ufs /wisdomark/services/squid 10000 16 256
cache_access_log /wisdomark/services/squid/access.log
cache_log /wisdomark/services/squid/cache.log
cache_store_log /wisdomark/services/squid/store.log
log_fqdn on
log_ip_on_direct on
log_icp_queries on
log_mime_hdrs on
debug_options ALL,1 33,2

# (I've tried many permutations of the refresh patterns)
#refresh_pattern .               0       20%     4320 reload-into-ims
##refresh_pattern -i \.(jpg|jpeg|gif|png|mov|avi|css)$ 10000 95% 99000 ignore-reload override-expire override-lastmod #refresh_pattern -i \.(css|jpg|png|gif|mpg|mpeg|mid|wav|mp3)$ 0 20% 4320 ignore-reload override-expire override-lastmod
#refresh_pattern -i . 300 50% 3600
#refresh_pattern .              0       20%     4320 reload-into-ims

hosts_file /etc/hosts

http_port 10.0.6.150:80
httpd_accel_host squidtest.bitpusher.com
httpd_accel_port 80
httpd_accel_uses_host_header on
httpd_accel_single_host off
memory_pools on
memory_pools_limit 1500 MB
cachemgr_passwd CENSORED all
coredump_dir /bitpusher/services/squid

acl All src 0/0
#acl Origin dst 10.0.6.150
acl Origin dst 10.0.6.0/24
acl OriginPort port 80

cache_mem 2048 MB
request_header_max_size 100 MB
request_body_max_size 100 MB
maximum_object_size 3 MB
maximum_object_size_in_memory 3 MB
reply_body_max_size 100000000 allow Origin

http_access allow Origin OriginPort
# (I've tried turning this on and off
no_cache deny All



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEZ+ehwjCqooJyNAMRAtAuAJ49eB6VcnqmnPQLY6RzGQ5HQGey5wCggWwJ
OHNrJtCKAq4pNRd4qxpfKs0=
=vucb
-----END PGP SIGNATURE-----

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux