I am going to upload new look of my site.my site is in ASP .NET , C#.
我要上传我的site.my网站的新外观是在ASP .NET,C#。
What i want that during my testing time the site should in Maintenance mode but i should be able to access the site.
我希望在我的测试时间内网站应该处于维护模式,但我应该能够访问该网站。
So my question is can i have conditional app_offline.htm , so my site will be accessible from my IP and others will see app_offline page.
所以我的问题是我可以有条件的app_offline.htm,所以我的网站可以从我的IP访问,其他人将看到app_offline页面。
Please note I can change my IIS setting if required.
请注意,如果需要,我可以更改我的IIS设置。
1 个解决方案
#1
1
Sadly I dont think that is possible. App_offline.htm is a one-trick-pony and just takes the app offline.
可悲的是,我不认为这是可能的。 App_offline.htm是一个单一的小动作,只需将应用程序脱机。
You mention being able to amend IIS settings. Are you able to set up a second site within IIS and restrict access by IP address, therefore still having your existing site online.
你提到能够修改IIS设置。您是否能够在IIS中设置第二个站点并通过IP地址限制访问,因此仍然可以使您的现有站点联机。
#1
1
Sadly I dont think that is possible. App_offline.htm is a one-trick-pony and just takes the app offline.
可悲的是,我不认为这是可能的。 App_offline.htm是一个单一的小动作,只需将应用程序脱机。
You mention being able to amend IIS settings. Are you able to set up a second site within IIS and restrict access by IP address, therefore still having your existing site online.
你提到能够修改IIS设置。您是否能够在IIS中设置第二个站点并通过IP地址限制访问,因此仍然可以使您的现有站点联机。