And if you like these post consider to click the share button. If you had any question, you can post any comment below. I will post about integrating it with squidman in next post. This will be worthy if you had a problem with some site, like dynamic content caching. I do not recommend you to load squid at startup because I will use squidman for the manager. This may won’t give you lot info, but it does what I need.ĭu -hs /Users/nawaikhsan/Library/Caches/squid/ The last one, the simplest and my favorite, we can just check the folder size.usr/local/squid/bin/squidclient -p 8080 mgr:info You can also use squidclient, this will give some squid summary info.Or you can check store.log and read the log, except for the ffffffff (memory) that should be your cached files.You may look in to squid cache.log and see if there is hit at there.There maybe various way to check squid cache. Please note I don’t run squid as root, and it’s work fine here.Īnd for the later, you can use ctrl+c. There will be two squid process.Īnd if you want to see what’s happen with squid in front of your eyes you can use this: Use this command if you want to run squid in background. But because squidman use that above ownership, so I’ll stick to that. In theory, if you change the owner to nobody:nobody squid will happily accept it. Sudo chown -R nawaikhsan:wheel /Users/nawaikhsan/Library/Caches/squid/ If not, change the ownership to your user:wheel If you do like I did, these folder will be owned by you(user):wheel. Squid will create cache folder on that path above. I did this because I will use squidman later, and use the same folder for this. Now we need to create the cache folder, if you follow my setting we will create squid cache folder on our user cache library, for me it’s /Users/nawaikhsan/Library/Caches/squid/, change to your user path. 1440 95% 10080 override-lastmod reload-into-ims ![]() Refresh_pattern ^ftp: 10080 95% 10080 override-lastmod reload-into-ims # ZPH, To enable cache content to be delivered at full lan speed, # Then decrease it to 128 MB or even less. # You can adjust it according to your need. # If you have 4GB memory in Squid box, we will use formula of 1/3 # OPTIONS WHICH AFFECT THE CACHE SIZE / zaib # If you want to hide your proxy machine from being detected at various site use following ![]() # And finally deny all other access to this proxy # Only allow cachemgr access from localhost #this for integrating with squidman (later)Ĭache_dir ufs /Users/nawaikhsan/Library/Caches/squid/ 500 16 256Īuth_param basic realm Squid proxy-caching web server #change the path to your Users Library, I use 500 Mb, change as you like #this need to be disabled for dynamic caching Squid will installed to /usr/local/squid/Įdit squid configuration file sudo nano /etc/nfĪnd edit as you want □ Okay, here my nf as reference: There is no –disable-ipv6 option on squid 2.7 but compile still work anyway with that command. I need to say thanks to Tony Gray at for the quick reply □ configure -prefix=/usr/local/squid -enable-delay-pools -disable-ipv6 I guess it’s permission issue, but all of my chmod “jutsu” didn’t make any difference. No Hits, no increase on cache folder size. ![]() At first I configure it, I use this code:īut then squid won’t cache anything. Here some references you may want to check:Įxtract the squid source code archive somewhere, and go to that folder. We may go to squidman 3.0/3.1 and set the ICAP, but I’m no squid expert and setting ICAP seem more complicated (see ). As I know, we can easier install squidman but they don’t have the 2.7 version. The reason I pick the 2.7 version because I need the store_url feature. So it’s just take about 850 Mb on my Developer folder. As long as the compiler works that’s fine.Īfter installing XCode, I remove some unnecessary files to reduce the space. Basically we just need to be able compiling the source. I use XCode 3.2 came from Mac OS DVD Installer. I will try to explain this as I remember, later □ I have some problems at first when installing this Squid 2.7 stable 9 on Mac OS.
0 Comments
Leave a Reply. |