自定义apache响应Service Temporarily Unavailable

服务器是apache+tomcat所以有时重启tomcat后。页面暂时无法访问。出现下面
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity

problems. Please try again later.
为了给用户以有好的界面
vi /usr/local/apache/conf/httpd.conf

#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#相当路径和绝对地址都可以
#ErrorDocument 503 http://news.apache.com/notice.html
ErrorDocument 503 /notice.html

至于notice.html内容可以如下

服务器正在维护中,请稍等------

你可能感兴趣的:(服务器技术)