View previous topic :: View next topic |
Author |
Message |
Kezza n00b
Joined: 11 Dec 2002 Posts: 49
|
Posted: Sat Feb 15, 2003 3:44 am Post subject: squid cache? |
|
|
I've just emerged squid and cannot get the cache to work
As root I've set up the swap file and have started squid
Code: | squid -v
squid -N -d 1 |
The startup messages all seem ok:
Code: | 2003/02/15 16:33:32| Starting Squid Cache version 2.5.STABLE1 for i686-pc-linux-gnu...
2003/02/15 16:33:32| Process ID 2240
2003/02/15 16:33:32| With 1024 file descriptors available
2003/02/15 16:33:32| Performing DNS Tests...
2003/02/15 16:33:32| Successful DNS name lookup tests...
2003/02/15 16:33:32| DNS Socket created at 0.0.0.0, port 32817, FD 5
2003/02/15 16:33:32| Adding nameserver 203.97.33.14 from /etc/resolv.conf
2003/02/15 16:33:32| Adding nameserver 203.97.37.14 from /etc/resolv.conf
2003/02/15 16:33:32| User-Agent logging is disabled.
2003/02/15 16:33:32| Referer logging is disabled.
2003/02/15 16:33:32| Unlinkd pipe opened on FD 10
2003/02/15 16:33:32| Swap maxSize 102400 KB, estimated 7876 objects
2003/02/15 16:33:32| Target number of buckets: 393
2003/02/15 16:33:32| Using 8192 Store buckets
2003/02/15 16:33:32| Max Mem size: 8192 KB
2003/02/15 16:33:32| Max Swap size: 102400 KB
2003/02/15 16:33:32| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2003/02/15 16:33:32| Rebuilding storage in /var/cache/squid (CLEAN)
2003/02/15 16:33:32| Using Least Load store dir selection
2003/02/15 16:33:32| Set Current Directory to /var/cache/squid
2003/02/15 16:33:32| Loaded Icons.
2003/02/15 16:33:33| Accepting HTTP connections at 0.0.0.0, port 3128, FD 11.
2003/02/15 16:33:33| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2003/02/15 16:33:33| HTCP Disabled.
2003/02/15 16:33:33| WCCP Disabled.
2003/02/15 16:33:33| Ready to serve requests.
2003/02/15 16:33:33| Done scanning /var/cache/squid swaplog (0 entries)
2003/02/15 16:33:33| Finished rebuilding storage from disk.
2003/02/15 16:33:33| 0 Entries scanned
2003/02/15 16:33:33| 0 Invalid entries.
2003/02/15 16:33:33| 0 With invalid flags.
2003/02/15 16:33:33| 0 Objects loaded.
2003/02/15 16:33:33| 0 Objects expired.
2003/02/15 16:33:33| 0 Objects cancelled.
2003/02/15 16:33:33| 0 Duplicate URLs purged.
2003/02/15 16:33:33| 0 Swapfile clashes avoided.
2003/02/15 16:33:33| Took 0.6 seconds ( 0.0 objects/sec).
2003/02/15 16:33:33| Beginning Validation Procedure
2003/02/15 16:33:33| Completed Validation Procedure
2003/02/15 16:33:33| Validated 0 Entries
2003/02/15 16:33:33| store_swap_size = 0k
2003/02/15 16:33:33| storeLateRelease: released 0 objects |
Connected to the internet, as a normal user I type:
Code: | squidclient http://squid.nlanr.net/
HTTP/1.0 302 Moved Temporarily
Date: Sat, 15 Feb 2003 03:36:28 GMT
Content-Type: text/html; charset=iso-8859-1
Server: Apache/1.3.26 (Unix) DAV/1.0.3
Location: http://www.squid-cache.org/
Via: 1.1 nc2-acld (NetCache NetApp/5.2.1D8)
X-Cache: MISS from desktop.home
X-Cache-Lookup: MISS from desktop.home:3128
Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>302 Found</TITLE>
</HEAD><BODY>
<H1>Found</H1>
The document has moved <A HREF="http://www.squid-cache.org/">here</A>.<P>
<HR>
<ADDRESS>Apache/1.3.26 Server at squid.nlanr.net Port 80</ADDRESS>
</BODY></HTML> |
This seems ok too. But whenever I type in the same URL with the command:
Code: | squidclient -h desktop.home http://squid.nlanr.net/ |
then the page is loaded from the internet, not from the cache (X-Cache: MISS from desktop.home & X-Cache-Lookup: MISS from desktop.home:3128 messages are displayed.)
I've tried this with many different URLs - all with the same result. Needless to say that /etc/hostname contains desktop.home as does visible_hostname in /etc/squid/squid.conf. I'm hoping that any squid-gurus may point me in the right direction. |
|
Back to top |
|
|
Ethernal Tux's lil' helper
Joined: 06 Nov 2002 Posts: 106 Location: Stockholm, Sweden
|
Posted: Mon Feb 17, 2003 10:22 am Post subject: |
|
|
I'd say the problem is that squid.conf is not properly set up with the parent caches. have a close look at that part with the parent cache and the ACL's. _________________ Hmm.. Of course, these are MY opinions - likely to be just as flawed as anyone else's. Um, really, I guess you should assume everyone's speaking out of some external influence. Believe in whatever makes sense to you. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|