CertCities.com -- The Ultimate Site for Certified IT Professionals
Post Your Mind in the CertCities.com Forums Share share | bookmark | e-mail
  Microsoft®
  Cisco®
  Security
  Oracle®
  A+/Network+"
  Linux/Unix
  More Certs
  Newsletters
  Salary Surveys
  Forums
  News
  Exam Reviews
  Tips
  Columns
  Features
  PopQuiz
  RSS Feeds
  Press Releases
  Contributors
  About Us
  Search
 

Advanced Search
  Free Newsletter
  Sign-up for the #1 Weekly IT
Certification News
and Advice.
Subscribe to CertCities.com Free Weekly E-mail Newsletter
CertCities.com

See What's New on
Redmondmag.com!

Cover Story: IE8: Behind the 8 Ball

Tech-Ed: Let's (Third) Party!

A Secure Leap into the Cloud

Windows Mobile's New Moves

SQL Speed Secrets


CertCities.com
Let us know what you
think! E-mail us at:



 
 
...Home ... Editorial ... Columns ..Column Story Saturday: April 5, 2014


 Tip o'the Week  
Zubair Alexander
Zubair Alexander


 Enabling Compression for Individual Sites in IIS 6.0
How can I enable static compression on only one specific site?
by Zubair Alexander  
3/4/2009 -- I'm running IIS 6.0 on Windows Server 2003. I can see the Service tab only on the Web Sites folder, not the individual Web sites, which means I can only enable static compression globally on all sites. How can I enable static compression on only one specific site?

Answer:
HTTP compression is enabled though the Service tab, which is only available on the Properties of the Web Sites folder (as you've discovered). You can compress either static or dynamic responses for your Web site, which speeds up Web site performance.

There are two options for you to select: "Compress application files" and "Compress static files." When you select the "Compress application files" option, you're configuring dynamic compression. When you select "Compress static files," you're configuring static compression.

Besides using the GUI, you can also enable static or dynamic compression by using the adsutil.vbs script. For static compression, use the following command at the command prompt:

cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoStaticCompression true

Replace the word "Static" in the above command with "Dynamic" for dynamic compression:

cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoDynamicCompression true

In your case, you're interested in enabling static compression for only one specific site, so you can first disable compression for all sites using the advsutil.vbs script. Then you can enable compression for just one site.

Log on as an Administrator account and type the following at the command prompt to disable static compression globally:

adsutil set w3svc/filters/compression/parameters/HcDoStaticCompression false

Now enable static compression only for your site by typing the following:

adsutil set w3svc/1/root/Home/mySite/DoStaticCompression true

Replace the path to mySite in the above command with the name of your site.


Zubair Alexander, MCSE, MCT, MCSA and Microsoft MVP is the founder of SeattlePro Enterprises, an IT training and consulting business. His experience covers a wide range of spectrum: trainer, consultant, systems administrator, security architect, network engineer, author, technical editor, college instructor and public speaker. Zubair holds more than 25 technical certifications and Bachelor of Science degrees in Aeronautics & Astronautics Engineering, Mathematics and Computer Information Systems. His Web site, www.techgalaxy.net, is dedicated to technical resources for IT professionals. Zubair may be reached at .

 


More articles by Zubair Alexander:

-- advertisement --


There are 28 CertCities.com user Comments for “Enabling Compression for Individual Sites in IIS 6.0”
Page 1 of 3
1/25/10: hotel türkei says: Stone Characteristic,concern channel amongst point die college male space insist weak secure absence total ask explain funny finish fall earth somebody stop ought limit document speech below land around edge escape front review complete bed anything vision theory discipline yes facility record idea map necessarily open girl market prisoner construction category priority buy place variety talk judge proper sea fresh works constant union leave here full total pain oil hear together similar strategy discover project useful nice already standard big contrast see location capable political performance sheet trend transfer
6/30/13: michael kors outlet store from [email protected] says: nice articles michael kors outlet store http://www.michaelkorsioutlet.org/
7/1/13: louis vuitton outlet from [email protected] says: good share. louis vuitton outlet http://www.louisvuittonttoutlet.com
7/4/13: christianlouboutinoutleta.com from [email protected] says: good share. christianlouboutinoutleta.com http://www.christianlouboutinoutleta.com
7/5/13: gucci outlet from [email protected] says: nice articles gucci outlet http://www.guccioutletstore-online.com
7/24/13: Herve Leger uk from [email protected] says: thanks for share! Herve Leger uk http://www.herveleger-outlet.co.uk/
8/4/13: Benefit Makeup uk from [email protected] says: Every little thing you haven't heard of makeup may be costing even more than you may think. Benefit Makeup uk http://www.benefitmakeupcheap.co.uk
8/5/13: Toms sale from [email protected] says: This unique shoes is actually terrific, it has countless options and capabilities. Toms sale http://www.tomscanadaoutlets.com
8/5/13: Fakeoakleysunglasses from [email protected] says: Who do I need to tweet? sunglass enthusiasts about Myspace Fake oakley sunglasses Sale http://www.fakeoakleysglasses.com
8/6/13: vivienne westwood from [email protected] says: Master Who Was Petrified Of shoes vivienne westwood http://www.viviennewestwoodcheapest.co.uk
First Page   Next Page   Last Page
Your comment about: “Enabling Compression for Individual Sites in IIS 6.0”
Name: (optional)
Location: (optional)
E-mail Address: (optional)
Comment:
   

-- advertisement (story continued below) --

top