View Single Post

  #6 (permalink)  
Old 05-24-2008, 08:10 PM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,035
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You also need server.errorfile-prefix lighttpd.conf to get 200 and 404 and other code correctly :
Code:
server.errorfile-prefix = "/home/lighttpd/errors/status-"
Now create static pages for your error handling in directory
/home/lighttpd/errors. Based on the above entry you must name your files status-(status-code).html
Code:
/home/lighttpd/errors/status-404.html
/home/lighttpd/errors/status-500.html
/home/lighttpd/errors/status-501.html
You can create custom pages for any error status code.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote