Search squid archive

Re: Re: Any way to redirect pages on return code?

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

 



On Do shanbe 28 Ordibehesht 1388 13:15:22 Amos Jeffries wrote:
> Platoali wrote:
> >  Platoali wrote:
> >> Hi,
> >>
> >> I'm looking for a way to make squid to redirect my users  to a specific
> >> page when  a special return code have been encountered.
> >>
> >> for example, here a part of my access log:
> >> 1242562024.085    347 172.20.0.68 TCP_MISS/403 1082 GET http://www.b.com
> >>  - DIRECT/195.189.143.133 -
> >>
> >> I want squid see that the server is returning 403 code. just redirect it
> >> to my specific page.
> >>
> >>
> >> Does anyone know how can this be done?
> >
> > I've found this, but does not work at all:
> >
> > acl filtering  http_status 403
> > http_access deny filtering
> > deny_info /var/www/L4.html filtering
> >
> > but it does not redirect to my page and I see these my cache.log. Any
> > suggestion:
> >
> > 2009/05/18 11:56:25| ACL::checklistMatches WARNING: 'filtering' ACL is
> > used but there is no HTTP reply -- not matching.
> > 2009/05/18 11:56:26| ACL::checklistMatches WARNING: 'filtering' ACL is
> > used but there is no HTTP reply -- not matching.
> > 2009/05/18 11:56:27| ACL::checklistMatches WARNING: 'filtering' ACL is
> > used but there is no HTTP reply -- not matching.
> >
> >
> > But I see that clearly in the access log that 403 is returned from web
> > server.
> >
> >
> > Best regards
> > Platoali
>
> Try using it in http_reply_access where the _reply_ status is present.
>

Thank you very much. It works very well that way.

> Amos


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

  Powered by Linux