Nilpo / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Custom error pages for 404, 500 status codes #110

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This can be implemented either through Mongoose web server error handling 
mechanism, or through the OnLoadError() callback in CEF.

For now I see only use for it for 404 pages. But there might be other cases, 
like directory listing denial (500?). PHP errors can be handled via 
set_error_handler and set_exception_handler functions. Though we might support 
all 5xx status codes here as well.

Original issue reported on code.google.com by czarek.t...@gmail.com on 8 May 2014 at 11:28

GoogleCodeExporter commented 9 years ago
Hi, 
  If there was an option (a settings.json parameter) to set a single error page for all possible errors then too it was great. The need to for separate error pages for 404,500 etc might be minimum, but the certainly there is good need and use for a common/general custom error page. 
Thanks and regards,
Sreenadh

Original comment by sree...@gmail.com on 1 Jun 2014 at 4:00

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 21 Oct 2014 at 10:39

GoogleCodeExporter commented 9 years ago
New option ["web_server"]["404_handler"] was added to settings.json that allows 
for handling 404 errors, which in turn allows pretty url rewrites. See for more 
details:
https://code.google.com/p/phpdesktop/issues/detail?id=81#c10

Original comment by czarek.t...@gmail.com on 27 Oct 2014 at 12:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Support for other error codes should be straightforward to add, see:
https://code.google.com/p/phpdesktop/source/browse/phpdesktop-chrome/web_server.
cpp?r=190fbae92d05#52

Original comment by czarek.t...@gmail.com on 27 Oct 2014 at 12:22

GoogleCodeExporter commented 9 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/110

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 3:30