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

Reply via email to