homepage Welcome to WebmasterWorld Guest from 54.198.94.76
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Dilemma: 500 Internal Server Error pages
It's kind of a paradox
migthegreek




msg:4286185
 10:15 am on Mar 23, 2011 (gmt 0)

I know how to make custom error pages - that's not my question.

The problem is this... how do you specifically make a custom 500 Internal Server Error page, and get it to successfully display if the server has an error?

i.e. How can you display a nice error page from the system when the system isn't working?

I am using a PHP MVC framework, but obviously if there's a server error, the framework can't be started and the error page is inaccessible. So how do you then show that error page?

I assume it involves using a static HTML page for just that one error, that bypasses any of the PHP framework or something. However, that then means I am sacrificing the integrity of the framework itself by hard coding paths (e.g. to images), and duplicating code (e.g. Common CSS used to make my pages look uniform).

How is this usually done?

Thoughts?

 

jdMorgan




msg:4288776
 11:30 pm on Mar 28, 2011 (gmt 0)

Because of the paradox you discovered, it is not usually done -- at least not by deep thinkers...

Use a dead-simple static-HTML custom 500-Error page, or no custom 500-Error page at all. If your back-end is down and a visitor sees a 500-Error, you have far bigger problems than "the error page isn't styled like other pages..."

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved