テストサーバーでメンテナンスを実行するときは、サーバー上のすべてのサイトにすべてのトラフィックをリダイレクトして、メンテナンスページを設定しているサイトのデフォルトサイトを指定したいと思います。
どうすればこれをすばやく達成できますか?
私はこのようなサイトweb.configの行を使用します
httpRedirect enabled="false" destination="http://someothersite.com/maintenance.htm" exactDestination="true" httpResponseStatus="Temporary"
中system.webServer
メンテナンスモードに移行する必要がある場合は、「false」を「true」に切り替えると、サイトへのすべてのトラフィックがhttp://someothersite.com/maintenance.htmに転送されます。