1

I have multiple sites on production server, some time one of site go down when heavy utility ended, which need iisreset, but iisreset cause all site down in resetting the iis. I want to reset the one site only, not all application pool. How i can reset my particular site of application pool.

Alexey Frunze
  • 61,140
  • 12
  • 83
  • 180
khawarPK
  • 2,179
  • 4
  • 20
  • 31

3 Answers3

3

You may use PowerShell:

Import-Module WebAdministration
Stop-WebSite 'Your Web Site'
Start-WebSite 'Your Web Site'

Here is the reference documentation for web administration cmdlets.

Community
  • 1
  • 1
Efran Cobisi
  • 6,138
  • 22
  • 22
  • you mean, i need to stop particular site from application pool and then restart? this is exactly equivalent to iisreset? – khawarPK Jul 04 '12 at 05:40
  • n m using IIS 6, the documentation is for Windows PowerShell cmdlets in IIS 7. is this work in IIS6 also? – khawarPK Jul 04 '12 at 05:44
  • 1
    For IIS 6 you may want to use iisweb.vbs (comes with IIS itself); please see [here](http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9ea4de7a-591a-48a6-84d8-0145fc594139.mspx?mfr=true) for additional details. – Efran Cobisi Jul 04 '12 at 08:22
2

You can make a change to the web.config file - a non breaking change like an extra space in between attributes save and revert. This will cause just that site to recycle.

Chris Holwerda
  • 1,255
  • 1
  • 10
  • 20
  • Ya, i did this, is this exactly equivalent to iisreset? – khawarPK Jul 04 '12 at 05:41
  • 1
    iisreset recycles all sites and app pools, modifying just a site web.config affects just that site. This is quick and dirty and depends on if you have access to production systems in that manner. – Chris Holwerda Jul 04 '12 at 05:50
0

You got to have independent AppPool for each of your website. And recycle each of them anytime you need. In general putting all the websites under the same AppPool is not a good practice though, unless you have some specific goal to achieve by this.

DaveShaw
  • 52,123
  • 16
  • 112
  • 141
ravi punjwani
  • 496
  • 4
  • 12