I wanted to reset some sites, on a multiple site IIS server, to pick up their logging settings from the root.
After some digging around I have found that you have to edit the “applicationhost.config” to achieve this.
The file can be found here
%windir%\System32\inetsrv\config
Site information is held within this XML file, find the site section with the corresponding site name you are looking for. In this example “Default Web Site”.
<site name="Default Web Site" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="C:\inetpub\wwwroot\defaultwebsite" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80:testy.test.commy" />
</bindings>
<logFile logFormat="W3C" directory="E:\weblogs" />
</site>
Now just delete the <logfile ….> entry completely and save.
You should now find in the IIS gui that the logging settings are now picking up the root settings. Hoorah!
No comments:
Post a Comment