Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Have Apache serve a default graphic when it encounters an error?

Status
Not open for further replies.

JackBeNimble

IS-IT--Management
Joined
Oct 14, 2004
Messages
1
Location
US
Can Apache be configured to serve a default image when it encounters a request for a graphic that it cannot find?

For example, if I have a Web page with a refernce to a graphic that does not exist on the system, normally, HTTP will render a red X'd box.

I would rather serve a default graphic and avoid the errors.

How can I configure Apache to do this?
 
I don't think you can ... I believe that's done at the client end

You could probably do it programatically if you used javascript or PHP for every single image, but I don't think you can configure Apache to do that?

Maybe i'm wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top