LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-30-2007, 02:32 AM   #1
almost000
Member
 
Registered: Apr 2007
Distribution: Fedora 7,Windows 3.11-9X/ME,Windows 2000/XP/Vista
Posts: 107

Rep: Reputation: 15
Arrow locolhost errors to a gif file and not a Html 404 error


Well I have my host file setup to to block ad server. running a LAMP server. I want it so I can have a small clear gif file replaces the 404 error is there something I can add to fix this.
 
Old 05-30-2007, 04:02 AM   #2
shorun
Member
 
Registered: Mar 2006
Location: belguim
Distribution: fedora, mandriva, suse
Posts: 148

Rep: Reputation: 15
so, you are allready running a server?
if so, try squid.
it can change the errors to, whatever you like.

otherwise i got no id how to do this
 
Old 05-30-2007, 12:20 PM   #3
almost000
Member
 
Registered: Apr 2007
Distribution: Fedora 7,Windows 3.11-9X/ME,Windows 2000/XP/Vista
Posts: 107

Original Poster
Rep: Reputation: 15
Arrow Yes Apache/2.2.4 (Fedora)

I am running a webserver.so I like 404's to be a clear gif file. but I don't know what files to change. I have a host file that blocked the ad's and now I want something that when I get a 404 page not found it would be a gif image.
 
Old 05-31-2007, 11:24 PM   #4
almost000
Member
 
Registered: Apr 2007
Distribution: Fedora 7,Windows 3.11-9X/ME,Windows 2000/XP/Vista
Posts: 107

Original Poster
Rep: Reputation: 15
Unhappy squid

I don't get How this will help me. it appers to be like a poxy server. which is cool. but all I want to know is how to change 404 error to a gif file.
 
Old 06-01-2007, 03:32 AM   #5
shorun
Member
 
Registered: Mar 2006
Location: belguim
Distribution: fedora, mandriva, suse
Posts: 148

Rep: Reputation: 15
i figured you wanted to change "other" webserver's 404 error's so you would recieve another msg.
but you want to make your own apache server give a 404 error with a gif, in stead of the one you have now.

in that case, apache will do just fine, no need for squid (srr about that).
in apache, there is a line that set's what error message people get, and you can change it to any url (witch happens to be the .gif you want).|
(check /etc/httpd/httpd.conf, if not found, do "find / -name 'httpd.conf' to search for the configuration file)

i forgot exactly how the line looks like, but i'm sure that it's in the manual (type man apache)

otherwise, a more simple solution might be webmin.
as the name suggest, webmin is a web-based administration tool.
if set up correctly, it's secure, and mostly easy to use. perfect for learning how to run a server, or how to configure it.

it has a more easy way of setting any kind of error message to whatever you like.

i hope this helps.
shorun

Last edited by shorun; 06-01-2007 at 03:33 AM.
 
Old 06-02-2007, 02:22 PM   #6
almost000
Member
 
Registered: Apr 2007
Distribution: Fedora 7,Windows 3.11-9X/ME,Windows 2000/XP/Vista
Posts: 107

Original Poster
Rep: Reputation: 15
Smile thank you

yeah that helps a lot
thank you
 
  


Reply

Tags
blocking


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
need shell script to copy 1.gif to 1-100.gif stefaandk Programming 6 03-23-2006 06:20 PM
CMD line tool for PDF -> HTML or JPG/PNG/GIF ilhbutshm Linux - Software 5 10-23-2004 04:18 AM
wget 404 error BarryM45 Linux - General 2 10-12-2004 05:12 AM
trailing slash in Apache gives 404 errors rabbate Linux - General 6 04-30-2004 08:34 AM
(404)error johncla Linux - Networking 1 03-25-2001 06:09 PM


All times are GMT -5. The time now is 09:53 PM.

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