简体   繁体   中英

how to achieve conditional app_offline.htm in asp .net IIS 7

I am going to upload new look of my site.my site is in 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.

Please note I can change my IIS setting if required.

Sadly I dont think that is possible. App_offline.htm is a one-trick-pony and just takes the app offline.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM