December 02, 2023, 11:21:43 AM

News : Linux Help Community Forum..

Author Topic: custom ERROR pages on SQUID  (Read 34904 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"
The requested URL could not be retrieved

While trying to retrieve the URL:*-http%3A//

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 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




</h1> </body>

After that this page will appear