| Ubuntu This forum is for the discussion of Ubuntu Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-30-2012, 06:53 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2012
Posts: 8
Rep: 
|
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?
|
|
|
|
12-30-2012, 08:31 AM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,359
|
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.
|
12-30-2012, 08:35 AM
|
#3
|
|
LQ Newbie
Registered: Dec 2012
Posts: 8
Original Poster
Rep: 
|
thanks man for the reply, ad want to add some text on the message, is that possible
|
|
|
|
12-30-2012, 09:00 AM
|
#4
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,359
|
Quote:
Originally Posted by kanjah
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.
|
12-30-2012, 10:24 AM
|
#5
|
|
LQ Newbie
Registered: Dec 2012
Posts: 8
Original Poster
Rep: 
|
thanks again, al try and let you know the outcome
|
|
|
|
12-30-2012, 10:36 AM
|
#6
|
|
LQ Newbie
Registered: Dec 2012
Posts: 8
Original Poster
Rep: 
|
thanks man, it works
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:22 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|