LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-05-2007, 06:41 AM   #1
espiya7
Member
 
Registered: Jul 2007
Posts: 33

Rep: Reputation: 15
changing the default squid error pages


Can we change squid's error pages? i wanted to change it to look somewhat friendly. hehehe

if yes, how?
 
Old 08-05-2007, 02:34 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have a look in your squid.conf file for the settings; error_map, err_html_text and deny_info. They may do what you want.
 
Old 08-05-2007, 03:58 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the error pages themselves just sit happily in a directory like /usr/share/squid/pages (check your installed package content for the exact location) which you can just change directly with vi or whatever.
 
Old 08-06-2007, 02:18 AM   #4
espiya7
Member
 
Registered: Jul 2007
Posts: 33

Original Poster
Rep: Reputation: 15
gee thanks guys! I'd check em' out as soon as possible when I'd be back at school!
 
Old 08-09-2007, 07:08 AM   #5
espiya7
Member
 
Registered: Jul 2007
Posts: 33

Original Poster
Rep: Reputation: 15
wowoweee! thanks guys for your help! We were able to change the squid pages by editing the files acid_kewpie said. We were able to manipulate it just like any other webpage but the problem is that we had to use a webserver to store the external files. Since, squid doesn't load those files.

after we've changed the pages we restarted squid (# service squid restart)
 
  


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
Is possible to have squid modify incoming pages? MikeyCarter Linux - Software 2 04-05-2007 04:33 PM
Squid running but doesn't seem to cach pages Crasherz Linux - Software 1 06-02-2004 04:10 AM
Using Squid and Apache in order to better serve pages xbaez Linux - Networking 2 04-07-2004 05:26 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 - Networking

All times are GMT -5. The time now is 02:24 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