locolhost errors to a gif file and not a Html 404 error
Linux - SoftwareThis 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
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.