hello all there ?
i want to customize the squid error pages nd want to insert logo of my company in it...
But Image is not loading during just the text is shown..... how i can troubleshoot this error ?... Please suggest ?
Thanks
Khurram
hello all there ?
i want to customize the squid error pages nd want to insert logo of my company in it...
But Image is not loading during just the text is shown..... how i can troubleshoot this error ?... Please suggest ?
Thanks
Khurram
Do you store images in same directory or loading from remote web server? Did you edited correct file in /etc/squid/errors (RHEL specific).
Here is an example of edited /etc/squid/error/ERR_FORWARDING_DENIED file. Note i've added the following code:
Here is a sample fileHTML Code:<p><center><IMG SRC="http://figs.cyberciti.biz/nixcraft.com.logo.jpg" /></center></p>
HTML Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The requested URL could not be retrieved</TITLE> <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE> </HEAD><BODY> <p><center><IMG SRC="http://figs.cyberciti.biz/nixcraft.com.logo.jpg" /></center></p> <H1>ERROR</H1> <H2>The requested URL could not be retrieved</H2> <HR noshade size="1px"> <P> While trying to retrieve the URL: <A HREF="%U">%U</A> <P> The following error was encountered: <UL> <LI> <STRONG> Forwarding Denied. </STRONG> </UL> <P> This cache will not forward your request because it is trying to enforce a sibling relationship. Perhaps the client at %i is a cache which has been misconfigured. <P>Your cache administrator is <A HREF="mailto:%w">%w</A>.
Last edited by nixcraft; 27th March 2010 at 01:49 PM.
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
Khurram (27th March 2010)
hello,
thankx for the quick reply, Yes i m storing the image in the same directory where the error pages are....!
Thanks
Khurram
Did you see my updated post? In that case add
<p><center><IMG SRC="YOUR-LOGO.jpg" /></center></p>
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
Khurram (27th March 2010)
thanks for this !
sorry but could u pls explain path .... coz my image path is /usr/share/squid/errors/en/WALLPAPER.JPG
how i will insert it in <IMG src="">
<p><center><IMG SRC="YOUR-LOGO.jpg" /></center></p> is not working for me.... It just shows Text Error not image... is there any change i have to make in any of the file errror ?
if so then pls guide me how i can nd what to write in it ?
Thankx
Khurram
Last edited by Khurram; 27th March 2010 at 02:13 PM.
Here is my Access Denied File.....!
<html>
<center>
<div>
<img src="wallpaper.jpg"><br></div>
<div>
<font color="RED"><em>Access Deniedlease Contact <a href="mailto:admin@domain">Administrator</a> for more information.</em></font>
</center>
</div>
</html>
Wallpaper is in the same directory where Error Pages are.......Code is correct but image not showing in Error Pages to Clients.....
Thankx
Khurram
Last edited by Khurram; 27th March 2010 at 02:58 PM.
I think it doesn't accept image from local dir. You need to have it from remote server. Try free image hosting and it should work.
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
Hello,
I have tried hosting free image nd inserting path there but the problem is still there....
i dont know where is problem but i cant understand it still... U have any suggestion ?
my code is now looking like this
<html>
<div style="text-align: center">
<img src="freeimagehosting.net/uploads/e61f15f900.gif">
<font color="RED"><em>Access Denied:- Please Contact <a href="mailto:admin@domain.com">Administrator</a> for more information.</em></font>
</div>
</html>
Thanks
Khurram
Last edited by Khurram; 29th March 2010 at 02:08 PM.
I'm no expert but use full http url path
something like:Code:http://freeimagehosting.net/uploads/e61f15f900.gif
Do you acl to block access to test it? If not add it. Than restart the squidHTML Code:<html> <center><img src="http://freeimagehosting.net/uploads/e61f15f900.gif"></center> <font color="RED"><em>Access Denied:- Please Contact <a href="mailto:admin@domain.com">Administrator</a> for more information.</em></font> </html>
Code:service squid restart
There are currently 1 users browsing this thread. (0 members and 1 guests)