简体   繁体   中英

Clearing unused iis websites

I have 20 websites under my IIS webserver(with Window server 2008 R2).

Now I need to clear some unused websites. How to do that?

At least can I see the last usage of the website from any source of the server?

Thank you

As far as I know, there is no other way to identify the unused website except checking the last request datetime in IIS log. In the IIS log path C:\inetpub\logs\LogFiles\W3SVCx(x is the ID of your website). Once you get the site ID, you can go to C:\Windows\System32\inetsrv\config\applicationhost.config to get site name.The binding would look like:

 <site name="Default Web Site" id="1" serverAutoStart="false">

Finally, you can delete the website from IIS manager GUI or Powershell.

Remove-IISSite

Best regards,

Sam

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