LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 12-30-2012, 06:53 AM   #1
kanjah
LQ Newbie
 
Registered: Dec 2012
Posts: 9

Rep: Reputation: Disabled
squid logo


Hi guyz, i have installed squid3 and would like to change its default icon to my own, i have one png hosted on imageshack, did refer to it on squid errorpage.css
"background: url('http://imageshack.us/a/img689/2136/centerw.png') no-repeat left;
but it not showing up on the error message, is their a way i could tweak this?
 
Old 12-30-2012, 08:31 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

You can either edit the ERR_ACCESS_DENIED template page and use the URL to your image, or use the deny_info directive with the acl(s) you want it to apply, e.g:
Code:
acl foo dstdomain foo,com
deny_info http://imageshack.us/a/img689/2136/centerw.png foo
If you edit a template page, don't forget to make a backup first.

Regards
 
1 members found this post helpful.
Old 12-30-2012, 08:35 AM   #3
kanjah
LQ Newbie
 
Registered: Dec 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
thanks man for the reply, ad want to add some text on the message, is that possible
 
Old 12-30-2012, 09:00 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
Originally Posted by kanjah View Post
thanks man for the reply, ad want to add some text on the message, is that possible
Sure it is.
As I've already told you, you can customize the ERR_ACCESS_DENIED page by adding text and images.
If you go with the deny_info directive, you need to create a custom page (in usr/share/squid/errors/English/custom.html) and use:
Code:
...
deny_info custom.html foo
Regards
 
1 members found this post helpful.
Old 12-30-2012, 10:24 AM   #5
kanjah
LQ Newbie
 
Registered: Dec 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
thanks again, al try and let you know the outcome
 
Old 12-30-2012, 10:36 AM   #6
kanjah
LQ Newbie
 
Registered: Dec 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
thanks man, it works
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to Change /Create My Own Logo Instead of Linux logo pillisrikanth Linux - Software 1 02-25-2012 07:29 AM
Display logo in squid shan_nathan Linux - Server 2 11-28-2007 07:24 AM
Change Suse Logo to KDE Logo little_penguin Suse/Novell 2 04-05-2005 05:35 PM
if you had your own os what would its logo be? berrance General 16 03-14-2005 06:47 AM


All times are GMT -5. The time now is 10:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration