日期:2014-05-17  浏览次数:20705 次

apache 配置升级提示页

1.在apache目录,编辑conf/httpd.conf

?

?

# Some examples:
#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://www.example.com/upgrade.html

2.将upgrade.html的升级提示页放置在htdocs,目录下即可。

?

注意:这需要应用不在80口,升级页可以占用80口,如果应用和升级页使用同样的端口,就会导致循环重定向。

简单处理办法:

?

1.新开一个监听端口,在conf/httpd.conf

Listen 8000
ErrorDocument 503 http://www.example.com:8000/upgrade.html
?