[squid-users] Custom PAYLOAD for 404 webserver response

Amos Jeffries squid3 at treenet.co.nz
Wed Oct 7 01:36:56 UTC 2015

On 6/10/2015 1:17 p.m., SaRaVanAn wrote:
> Hi All,
> With the help of Squid I want to return a custom payload for 404 response
> returned from web server. I have configured below acl to achieve the same
> acl denied_status_404 http_status 404
> deny_info  http://errorpage.com denied_status_404
> with the above configuration squid is sending 302 redirection to client
> browser . But I want squid to retain the same http status code (404) when
> responds back.
> Basically I want to modify  only the payload of the webserver response with
> same 404 status code.
> I know this can be achieved in squid version 3.2. But our server is running
> with squid version 3.1.20 . Is there any way we can achieve this in squid
> 3.1?

For 3.1 this can only be done with ICAP filtering of the messages.


More information about the squid-users mailing list