Koozali.org: home of the SME Server

Squid configuration

Bobby

Squid configuration
« on: June 22, 2001, 07:49:48 PM »
Hi:
I'm probably just being stupid, but I can't seem to figure out how to make changes to squid. I've edited /etc/e-smith/templates/etc/squid/squid.conf/template-begin but it doesn't seem to have the desired effect. I've been leaving the #'s since all the lines seem to be commented, but this may be the problem, but I wouldn't think e-smith would be using only the defaults. What I'm trying to do is reduce the default cached time to 4 hours or so, because I'm using transproxy and IE's refresh doesn't work properly with transproxy. I don't like setting proxy info so that's not an option ;o) Is there another configuration file somewhere that holds the values for the squid file, or do I just need to uncomment the option I want to change from the default?
Thanks,
Bobby

David Brown

Re: Squid configuration
« Reply #1 on: June 23, 2001, 01:20:15 AM »
I had a similar situation where I wanted to increase the defaule cache size and times. I actually broke down /etc/squid/squid.conf into template fragments that seemed logical to me and put them into /etc/e-smith/templates/etc/squid/squid.conf/  and then copied the template fragments I wanted to edit to /etc/e-smith/templates-custon/etc/squid/squid.conf/ and modified them as necessary.  After expanding the template and restarting squid, everything went fine, except that I had to modify the cache_dir TAG to include a cache "type", i.e. I changed from the e-smith default of "cache_dir /var/spool/squid 100 16 256" as listed in template-begin to "cache_dir ufs /var/spool/squid 100 16 256" as listed in /etc/squid/squid.conf.default.  Apparently the e-smith template missed the "ufs" flag for the cache type, which gave me some temporary grief until I got it figured out (thanks to the Squid configuration manual at http://www.visolve.com/squidman/Configuration%20Guide.html)

Good Luck

David M. Brown
Frick, Frick & Jette Architects
dbrown@ffj.yi.org

Bobby

Re: Squid configuration
« Reply #2 on: July 02, 2001, 07:47:39 PM »
Thanks, I'll give that a try when I get a chance.