Search squid archive

Re: Change ERR_CANNOT_FORWARD timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the reply.

I have been denying access using cache_peer_access deny rather than
'http_access deny'.

cache_peer_access test allow sites_test allowable
cache_peer_access test allow sites_test othersallowed
cache_peer_access test deny publicall

Should I be switching to http_access rather than cache_peer_access?

-- 
  Paul Ch
  sima_yi@xxxxxxxxxxxxx

On Tue, Nov 20, 2012, at 08:50 AM, Amos Jeffries wrote:
> On 20/11/2012 6:13 p.m., Paul Ch wrote:
> > Hi,
> >
> > I have a few websites behind a squid reverse proxy server.
> > These servers are shutdown outside of business hours. During this time,
> > squid displays the 'ERR_CANNOT_FORWARD' message which we have modified
> > to display a friendly error message 'We are running between 9am - 5pm).
> >
> > The problem is, this take approximately 80 seconds. We would like to
> > change this to 20 seconds.
> >
> > How would we go about doing this?
> 
> With access controls to deny permission based on time of day.
> 
>    acl serviceHours time 09:00-17:00
>    http_access deny !serviceHours
> deny_info ERR_CANNOT_FORWARD noService
> 
> Note that you ame the template to be displayed. So no need to alter 
> CANNOT_FORWARD. You can create a custom one of your own and place it in 
> the Squid errors  /templates directory.
> 
> Amos

-- 
http://www.fastmail.fm - Access your email from home and the web



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux