Re: [squid-users] Custom Error Pages with images

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 1 Mar 2003 23:11:43 +0100

The icon trick works for providing any files of reasonable size of any
mime type..

just add them after the "default" icon (last line, "." as pattern) to
ensure they are never confused to be real icons..

But my recommendation is to only use the icon trick as last resort.
Better to put the images on a real web server and refer to them by
full URL.

Note: access to icons is under http_access restriction like anything
else, so using the icons in access denied may be a little
cumbersome..

Regards
Henrik

On Saturday 01 March 2003 22.41, Gary Price \(ICT\) wrote:
> Would the icon option work for the Access Denied error page? I had
> assumed it was not possible to put custom images on that error
> page.
>
> Gary Price
> Intelligent Compression Technologies
> ----- Original Message -----
> From: "Henrik Nordstrom" <hno@squid-cache.org>
> To: "Stella Korakaki" <skor@freemail.gr>
> Cc: "Squid Mailling List" <squid-users@squid-cache.org>
> Sent: Friday, February 28, 2003 11:59 PM
> Subject: Re: [squid-users] Custom Error Pages with images
>
> > You need to publish any images on some web server which your
> > users have access to, and refer to them by full URL.
> >
> > Another option, but slightly obscure one, is to load the required
> > images as icons in Squid (see mime.conf) and then refer to them
> > by /squid-internal-static/icons/<filename>
> >
> > Regards
> > Henrik
> >
> > fre 2003-02-28 klockan 15.40 skrev Stella Korakaki:
> > > hi everyone.
> > > I need to create my own error pages in squid.
> > > My first problem was that I couldn't identify with page matches
> > > with with error.
> > > For instance, when error 404 occures which one is the page
> > > displayed.
> > >
> > > The second problem is that I created some html pages which also
> > > display an image.
> > > When a page is not found and an error occures, the page is
> > > displayed but the image not.
> > >
> > > I also include the images in the same directory with the pages
> > > and I have put the correct src in the tags of the html page.
> > >
> > >
> > > Could anyone help me?
> > >
> > > rgds
> > >
> > > Stella
> >
> > --
> > Henrik Nordstrom <hno@squid-cache.org>
> > MARA Systems AB, Sweden
Received on Sat Mar 01 2003 - 15:10:17 MST

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