Dev Log Date 23.11.06 - Disabling IIS Compression

If, like my site, you have IIS compression enabled globally on the server, you might want to disable it for certain sites, or directories.

Well I've found the way, thanks to TechNet, lol.

Right, here's wat you do:

  • First Step is in IIS Manager
    1. Click on Websites
    2. Find your site
    3. Take note of the identifier
      [photo:2334]
  • Second Step is in Command Prompt
    1. Start > Run: "cmd" OK
    2. cd \Inetpub\AdminScripts
    3. cscript adsutil set w3svc/%IISSiteID%/root/DoStaticCompression false
    4. cscript adsutil set w3svc/%IISSiteID%/root/DoDynamicCompression false
  • Last step, check the results in IIS Resource Kit's Metabase Explorer
    1. Start Metabase Explorer
    2. Expand W3SVC
    3. Expand your site
    4. Click on root
    5. Notice DoDynamicCompression, and DoStaticCompression Set to 0 (false)
      [photo:2335]

Any your done, your individual site is now IIS Compression Free.

You can also make a unique folder inside your site Compression Free, by following the instructions on this site: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/25d2170b-09c0-45fd-8da4-898cf9a7d568.mspx?mfr=true

/* end of log */


Posted Nov 23 2006, 03:08 PM by Nick