EFW Support

Support => EFW SMTP, HTTP, SIP, FTP Proxy Support => Topic started by: mangthjik on Tuesday 07 February 2012, 11:58:47 am



Title: [Solved]where I should edit to add refresh pattern policy for proxy
Post by: mangthjik on Tuesday 07 February 2012, 11:58:47 am
hello sir,,,  I am newbie here,

may be this is a stupid question

I need to override refreshpattern in squid ?

where i should  insert the refresh pattern code?
 thanks





Title: Re: where I should edit to add refresh pattern policy for proxy
Post by: endianupdate on Wednesday 08 February 2012, 07:48:32 am
The proxy configuration in the EFW web interface does not allow you to change the refresh_pattern settings, you will need to edit the /etc/squid/squid.conf.tmpl file (on Windows use WinSCP)

The squid.conf.tmpl file is used by EFW to create the squid.conf file so do not edit the squid.conf file directly as the changes will be overwritten when the Proxy is restarted.

Here are the default settings in the squid.conf.tmpl file for EFW 2.5.1

# caching settings
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern .            0 20% 4320

You will need to change these to your settings and then restart the Proxy

Of course take a backup copy of the original file first  :)

Hope this helps.


Title: Re: where I should edit to add refresh pattern policy for proxy
Post by: mangthjik on Friday 10 February 2012, 06:23:27 pm
thanks endianupdate .... :)  solved