[squid-users] Redirectors and squid error messages

From: Andy Hird <andyh@dont-contact.us>
Date: Thu, 15 May 2003 15:58:56 +1000

Hi there,

I have a squid redirector which under certain (rare) conditions can fail
to process a URL because an external process it communicates with isn't
running. Rather than just allowing the user to carry on to their
requested URL, or return a URL to a static page I'd like to somehow have
squid return an internal error message (i.e. something I've defined from
inside /etc/squid/errors).

I've tried various (more and more desperate) schemes for doing this but
have failed so far. The main problem that I see is that by the time
squid hands off a URL its done all its acl access processing, and won't
repeat them on the URL the redirector returns. So its not possible for
me to use the technique described in the squid FAQ 10.24 to make up my
own error message and have the redirector return a URL which access the
error message using deny_info and http_access deny.

I tried having the redirector return a 302 redirect request (using a
combination of the technique in FAQ 10.24 and redirector_access) to a
squid-internal page but this just results in the browser going directly
to it when I request the original URL (I want it to keep trying the page
its really trying to get because the failiure condition for the
redirector is relatively short lived).

Any ideas or thoughts on how this may be possible?

Thanks
Andy Hird
Received on Wed May 14 2003 - 23:59:36 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:40 MST