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

Reply via email to