March 19, 2024, 04:50:41 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: custom ERROR pages on SQUID  (Read 34987 times)

Offline clmorre

  • Linux Noob !
  • *
  • Posts: 8
custom ERROR pages on SQUID
« on: April 28, 2006, 08:53:56 AM »
I have successfully blocked some sites, and when the user access a blocked site this will display on their screen"
ERROR
The requested URL could not be retrieved
                              --------------------------------------------------------------------------------

While trying to retrieve the URL: http://rds.yahoo.com/_ylt=A0geupouzVFELS0BfmpXNyoA/SIG=11i41fj3h/EXP=1146298030/*-http%3A//search.yahoo.com/search?

The following error was encountered:

Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

Your cache administrator is root.



--------------------------------------------------------------------------------

Generated Fri, 28 Apr 2006 08:54:53 GMT by www.xxxx.com(squid/2.5.STABLE1) ERROR The requested URL could not be retrieved".


Is their a way that I can change the display?Please help me.tnx. :lol:

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
custom ERROR pages on SQUID
« Reply #1 on: April 28, 2006, 11:27:35 AM »
Ya you can change the display

By default squid display errors from
/etc/squid/errors/ directory

By Default , This error comes from this page /etc/squid/errors/ERR_ACCESS_DENIED

You have 2 options in this :

1. You can make changes in this page, if u know HTML

2.delete /etc/squid/errors/ERR_ACCESS_DENIED
page using
#rm /etc/squid/errors/ERR_ACCESS_DENIED

Make any page  using  script languages like HTML etc and  rename that page to ERR_ACCESS_DENIED

:-U can write this in ur new page(named ERR_ACCESS_DENIED )  if u wana test

<html>

<body><h1>

THE REQUESTED PAGE IS BLOCKED

</h1> </body>
</html>

After that this page will appear


Cheers
Gaurav