Project

General

Profile

Server error-handler-404Details » History » Revision 3

Revision 2 (Anonymous, 2006-08-10 23:16) → Revision 3/10 (Anonymous, 2007-09-20 15:16)

{{{ 
 #!rst 

 server.error-handler-404 option 
 =============================== 

 server.error-handler-404 

     uri to call if the requested file results in a 404. You can use a dynamic or static page for the handler. 

     The actual status-code sent back to client is 200 if handler uri is successful. If you want to send a 404 status code please use server.errorfile-prefix, however server.errorfile-prefix does not allow dynamic handlers (or use "header" function to set 404 status code if your error page is in PHP). handlers. 

     Default: not set 

     Example: :: 

       server.error-handler-404 = "/error-404.php" 


 See Also 
 ======== 

  * server.errorfile-prefix option <http://trac.lighttpd.net/trac/wiki/server.errorfile-prefixDetails> 
  * Spice Up Error Page (Blog) <http://blog.lighttpd.net/articles/2005/08/28/spice-up-for-error-page>  

 }}}