We help IT Professionals succeed at work.

Configuration file for IIS 7 website definitions?

Hi,

Is there a configuration file within IIS that defines current existing websites?  From yesterday to today one of the sites on my server disappeared.  I'd like to recover it gracefully if I could, from backups.  The site content folders are still intact.

This is on a Windows 2008 server.

Thanks!

--Ben
Comment
Watch Question

Zaheer IqbalTechnical Assurance & Implementation
Commented:
Hi from memory there is a folder under the inetpub folder that holds configuration changes.
Zaheer IqbalTechnical Assurance & Implementation

Commented:
c:\inetpub\history
CTO, SAS developer
Commented:
Ok, I found it.  It's in windows\system32\inetsrv\config and is called applicationhost.config.

Oh jeez.  I have to be losing it.  I didn't remember that I had added a 3rd qualifier of 'beta' to it as in 'beta.xyz.com'.  I was just looking for xyz.com and panic'd when I couldn't find it or bring up the site.  

Sorry for the fire drill!

--Ben
Distinguished Expert 2019

Commented:
appcmd is a command line tool that you can use to enumerate/query iis...
Appcmd list site

https://technet.microsoft.com/en-us/library/cc771280(v=ws.10).aspx
Ben ConnerCTO, SAS developer

Author

Commented:
Thanks, Arnold!  Will keep that in my pile of nuggets.
Ben ConnerCTO, SAS developer

Author

Commented:
I found the answer before the experts were able to clarify it.  I did give points for providing a hint that jogged my memory.