如何显示“暂时停止服务"?维护期间将网页转到Web应用程序用户? [英] How can I show a "temporarily out of service" page to web-app users during maintenance?

查看:79
本文介绍了如何显示“暂时停止服务"?维护期间将网页转到Web应用程序用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发和维护用JSP和Java编写的小型Intranet Web应用程序. 它们运行在Resin Web服务器上,没有像Apache这样的专用httpd.

I develop and maintain small intranet web apps written in JSP and Java. They run on a Resin web server, without dedicated httpd like Apache.

在执行维护之前,我激活了一个非常简单的Ajax消息以敦促用户注销.

Before performing maintenance, I activate a very simple Ajax message to urge users to logout.

我想要的是,在进行维护时,一个试图登录该特定应用程序的用户 可以看到抱歉,暂时无法使用"页面,而在同一Web服务器上运行的所有其他Web应用程序照常可用.

What I want is, while I do maintenance, a user trying to log in to that particular app to see a "Sorry, temporarily out of service" page, while all other web apps running on the same web server are available as usual.

在这种情况下有哪些最佳实践?

What are some best practices in this situation?

推荐答案

使用中断消息在Web服务器上设置备用站点.然后,在进行维护时,将您的网站重定向到维护站点,同时进行更新.这样,如果用户为除默认页面之外的页面添加了书签,则他们仍将收到中断消息.否则,一种简单的方法是将默认/登录页面换成维护页面.

Setup an alternate site on your webserver with the outage message. Then when doing maintenance, redirect your website to the maintenance site while up update it. That way if users have pages other than the default page bookmarked, they will still get the outage message. Otherwise, a simple approach is to just swap out your default/login page with a maintenance page.

这篇关于如何显示“暂时停止服务"?维护期间将网页转到Web应用程序用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆