Reputation: 52210
I need to disable a virtual directory on a server without disabling the rest of the virtual directories and applications running on that box.
In this case, the virtual directory I wish to disable shares a physical directory with an application that needs to stay up. For this reason, I cannot use the recommended technique of adding app_offline.htm.
Is there a flag or a setting within IIS that I can use to stop the virtual directory from using?
Upvotes: 2
Views: 5777
Reputation: 6133
A simple solution would be to :
For more information refer this link
Upvotes: 2
Reputation: 3013
Back up your applicationhost.config
file located in c:\windows\system32\inetsrv\config
Then just right click on the virtual directory you want to remove and click remove.
When you want to restore it, just overwrite the applicationhost.config file with the backup you took.
Upvotes: 2