`
zznj1123
  • 浏览: 121220 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

自定义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内容可以如下

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

分享到:
评论
1 楼 liu0521 2012-11-13  
你测试成功了吗?

相关推荐

Global site tag (gtag.js) - Google Analytics