Re: [squid-users] Reverse Proxy custom 404/500 pages for each site?

From: Paul Ch <sima_yi_at_operamail.com>
Date: Fri, 17 May 2013 06:21:49 +0000

Thanks for the info. I'm using the iframe option and while not the
ideal solution, it gets the job done.

Thanks for all the help!

On Fri, May 17, 2013, at 05:56 AM, Amos Jeffries wrote:
> On 17/05/2013 4:45 p.m., Paul Ch wrote:
> > Thanks for the replies. There are actually a lot of differences between
> > each of these files, so I need them to be separate.
> >
> > I understand what %H does now but I'm having a strange problem.
> >
> > I have created a file called errorsite1404.html and put it in my
> > templates folder.
> >
> > The following lines work in squid:
> >
> > deny_info errorsite1404.html denied_status_404
> > http_reply_access deny denied_status_404
> >
> > # The error pages is displayed correctly.
> >
> > However, the following lines do NOT work:
> >
> > deny_info error%H400.html denied_status_404
>
> Because the %H is a macro used for expanding the *content* of the HTTP
> response payload, or the Location: header if redirecting. It does not
> expand in the filename itself.
>
> Amos

-- 
http://www.fastmail.fm - mmm... Fastmail...
Received on Fri May 17 2013 - 06:21:52 MDT

This archive was generated by hypermail 2.2.0 : Fri May 17 2013 - 12:00:07 MDT