http://blog.lighttpd.net/articles/2005/08/28/spice-up-for-error-page
http://blogs.atlassian.com/developer/2007/05/lighttpd_as_a_front-end_for_atlassian_applications.html
Normally that's all there is to it. However, during restarts of the application server lighttpd will show a default 503 (service unavailble) error page. As this is a normal maintenance event we want something a bit more informative. This is simple enought; just create a directory to hold the custom error page (I put it in /etc/lighttpd/error-html) and add a page called '503.html' with the custom message. Then add the line:
server.errorfile-prefix = "/etc/lighttpd/error-html/"
http://blogs.atlassian.com/developer/2007/05/lighttpd_as_a_front-end_for_atlassian_applications.html
Normally that's all there is to it. However, during restarts of the application server lighttpd will show a default 503 (service unavailble) error page. As this is a normal maintenance event we want something a bit more informative. This is simple enought; just create a directory to hold the custom error page (I put it in /etc/lighttpd/error-html) and add a page called '503.html' with the custom message. Then add the line:
server.errorfile-prefix = "/etc/lighttpd/error-html/"
本文介绍如何为Lighttpd配置自定义错误页面,特别是503错误页面,以便在应用服务器重启期间显示更友好的信息。通过创建特定目录及文件,可以轻松实现这一目标。
5614

被折叠的 条评论
为什么被折叠?



