Author Topic: Change Squid configuration stumbs?  (Read 2034 times)

makkk

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Change Squid configuration stumbs?
« on: February 04, 2015, 10:00:25 pm »
I track some strange behaviour of my squid proxy on Zentyal - it didn't cache files of size more than 1MB (even when default config was 128MB) i found solution with is so simple and works(!) in the configuration file maximum_object_size should be above the cache_dir

and that's it, squid works like a charm now!

How about you change the stumb file squid-external.conf.mas ? It will help a lot of users...

(source) http://squid-web-proxy-cache.1019090.n4.nabble.com/Problem-with-caching-larger-files-td4666004.html#a4666006

julio

  • Guest
Re: Change Squid configuration stumbs?
« Reply #1 on: February 04, 2015, 10:32:47 pm »
you can change in:
Code: [Select]
/etc/zentyal/squid.conf
after changing:
Code: [Select]
sudo service zentyal webadmin restart
sudo service zentyal squid restart
sudo squid3 reload

makkk

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Change Squid configuration stumbs?
« Reply #2 on: February 05, 2015, 12:20:16 am »
This is bad way, any time you change settings this file is modified,  my method is a bit better but still after squid update new stumb file can be modified. .. so if I'm right I think this file should be modified by zentyal update so squid can work properly for all users.
« Last Edit: February 05, 2015, 12:23:44 am by makkk »

julio

  • Guest
Re: Change Squid configuration stumbs?
« Reply #3 on: February 05, 2015, 11:16:44 am »
Not, this is a official, right way!
Please take a look at the path one more time: "/etc/zentyal/squid.conf"
This file is the general configuration for zentyal squid modul!
During squid modul update, this file not changed!
« Last Edit: February 05, 2015, 11:23:24 am by julio »

makkk

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Change Squid configuration stumbs?
« Reply #4 on: February 05, 2015, 08:30:11 pm »
Ok, but this file doesnt decide witch line goes first and thats what make the difference... and thats why i have to change /usr/share/zentyal/stubs/squid/squid-external.conf.mas and this file will be changed if new version of squid is released. This change makes squid working how it should be...

julio

  • Guest
Re: Change Squid configuration stumbs?
« Reply #5 on: February 06, 2015, 12:32:53 am »
copy "squid-external.conf.mas" to stubs:
Code: [Select]
sudo mkdir -p /etc/zentyal/stubs/squid
sudo cp /usr/share/zentyal/stubs/squid/squid-external.conf.mas /etc/zentyal/stubs/squid/squid-external.conf.mas

make your changes in the "/etc/zentyal/stubs/squid/squid-external.conf.mas" file

after changes:
Code: [Select]
sudo service zentyal squid restart
sudo squid reload
« Last Edit: February 06, 2015, 12:43:45 am by julio »