Re: [squid-users] dynamic page

From: Joe Cooper <joe@dont-contact.us>
Date: Thu, 11 Apr 2002 23:37:00 -0500

Colin Campbell wrote:
> Hi,
>
> On Fri, 12 Apr 2002, shadha wrote:
>
>
>> Hello all,
>>
>> By default error pages(html) can be customised using deny_info
>> directive. Is it possible to make dynamic error page for squid. If
>> yes...how to do?
>
>
> Squid is a proxy that has some code for returning a file if it comes
> across an error. To do anything fancy, you need a web server running
> somewhere and change the file returned by squid to refer to a page
> on that webserver, eg by sending a redirect. Not sure what info
> you'd be able to pass back to the browser though.

Note also that Squid has a basic templating feature built in which will
let you include the error returned, the URL, the err_html_txt message
from squid.conf, etc.

I use it in our packages to provide an email link that users can click
if they run into a problem. The email automatically includes the error
and the URL that caused the error. (Users sometimes have a hard time
figuring out what they need to send...I used to get a lot of complaints
like "Why doesn't my mail work? It's been broken all day!" or "Take me
off your stupid list! NOW!"--Apparently many folks don't bother to read
the error they received. ;-)

-- 
Joe Cooper <joe@swelltech.com>
http://www.swelltech.com
Web Caching Appliances and Support
Received on Thu Apr 11 2002 - 22:39:50 MDT

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