LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-29-2012, 08:10 PM   #1
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Rep: Reputation: 31
squid error pages


im trying to disable the custom squid error pages, i tried to at least remove the version info popping up, but how do i completely mask the proxy pages.

i dug for a while but squids a big package to be digging through. i see access loading stuff and cache log... i disable both and clear the logs from squid and restart to turn the logging off as its excessive.
 
Old 01-30-2012, 05:01 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

If you want to suppress the squid version in generated pages, add:
Code:
httpd_suppress_version_string On
in squid conf

Disabling the error pages is not possible. What you can do is to change them to your liking
First of all add in squid.conf
Code:
error_directory /path/to/my/errors-dir
to keep the original error pages intact.
Then copy everything from /usr/share/squid/errors/English (or /usr/share/squid/errors/en) to the directory specified above.
After this you can either replace the contents of every ERR_* file with your own message, or you can remove (using sed) the reverences to %s (the squid version)

Regards
 
1 members found this post helpful.
Old 01-30-2012, 06:03 AM   #3
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
looks like i left the config files flag off... anyways thank you much good sir.... do you know of any pre built error pages? id like some pre built ones... something quick n easy
 
Old 01-30-2012, 06:32 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Well, I don't know of any prebuild error pages, but if you're good in html/css, you can customize /etc/squid/errorpage.css
Or take a look here

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
block pages in squid.conf ? shipon_97 Linux - Security 1 01-13-2008 04:20 AM
changing the default squid error pages espiya7 Linux - Networking 4 08-09-2007 07:08 AM
Is possible to have squid modify incoming pages? MikeyCarter Linux - Software 2 04-05-2007 04:33 PM
Squid - Serving stale pages cli_man Linux - Software 0 12-08-2003 08:45 AM
A unknown error accesing https pages... Would be the squid.conf guilty?? mnfjzog Linux - General 1 11-14-2003 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration