网站已停止,但想在html页面中显示消息 [英] Site stopped but want to show the Message in html page

查看:160
本文介绍了网站已停止,但想在html页面中显示消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我有一个与IIS 7或7.5有关的问题
由于某些原因,我不得不停止我的网站一天.然后,使用此site.thouseed的用户让他们知道正在进行一些维护活动,因此我想向他们显示html页面,其中显示网站位于建筑"

注意-:我已经停止了我的网站.

请引导并建议我
如何在根目录上进行配置或任何其他设置.


谢谢

Hi Friends,

I have one problem related to the IIS 7 or 7.5
Due to some reason i have to stop my site for a day.more then thoused users using this site.to let them know there is some maintanace activity has been going on so that i want to show them html page that display "Site is under construction"

Note-:I have stopped my site.

please guid and suggest me
how to configure or any other setting on the root directory.


Thanks

推荐答案

停止应用程序将无法正常工作,用户将只会遇到未找到的错误.您应该为网站适当设置默认文档,即删除默认HTML以外的所有其他文档

http://learn.iis.net/page.aspx/203/default-documents/ [ ^ ]

但是,更好"的方式将是拥有一个测试/暂存站点进行更新,然后迁移到生产环境.生产站点将在几分钟内(而不是整天)处于离线状态.
Stopping the application won''t work, the users will just a not found error. You should set the default document for the site appropriately, i.e, remove all others except your default html

http://learn.iis.net/page.aspx/203/default-documents/[^]

A "better" way, however, would be to have a testing/staging site to update then migrate to production. The production site would be offline for minutes not an entire day.


这篇关于网站已停止,但想在html页面中显示消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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