How can I stop and start access to a site

Discussion in 'Site Programming, Development and Design' started by 3587, May 24, 2010.

  1. I have a few sites with apps on them and would like to be able to stop access to a site if there is a problem with the client that is using the site. We have not been able to find a way to do this with Winhost. DiscountASP has an open to let you stop and start IIS for a site.

    Does anyone have any suggestions on how to do this with Winhost?

    Thank you,
     
  2. Ray

    Ray

    You can always use a redirect script to make it go to a specific page of your choice. However, to actually stop the service that is something we will have to do for a customer.
     
  3. For something quick, you can upload an htm file named "app_offline.htm" in the root vdir folder to disable your site. .NET recognizes this file to disable it and the htm file can contain information on why it's down.

    I usually throw a ".bak" on the end of the file to re-enable the site.

    Hope that helps.
     
  4. Ray

    Ray

    Oh yeah I competely forgot about app_offline.htm. Thanks for the reminder.
     

Share This Page