Re: [squid-users] TCP_DENIED_RELY 302 for error_map

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 03 Jul 2014 14:18:12 +1200

On 2014-07-03 06:10, SaRaVanAn wrote:
> Hi All,
> Recently I have migrated from squid 2.7 to squid 3.2, which forces
> me to replace an existing error_map configuration with below access
> list to achieve the same
>
> acl denied_status_404 http_status 404
> deny_info ERR_404.html denied_status_404
> http_reply_access deny denied_status_404
>
> but if i use this configuration access.log is reporting the 404 http
> status as TCP_DENIED_REPLY 302. I just want to capture the HTTP 404
> error codes for statistics. Because i could able to capture
> the HTTP 404 error codes with old error_map configuration
>
> Is there any configuration in squid to achieve this?

Please read the section in
http://www.squid-cache.org/Doc/config/deny_info/ on 4xx and 5xx error
codes to see what is going wrong.

The 302 is generated when you provide a full URL to deny_info. To
replace an error status reply retain the same status code in the
deny_info format:
   deny_info 404:ERR_404.html denied_status_404

Amos
Received on Thu Jul 03 2014 - 02:18:21 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 08 2014 - 12:00:05 MDT