Microsoft KB Archive/234497

= How to specify additional document types for HTTP compression =

Article ID: 234497

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Services 5.0
 * Microsoft Internet Information Services 6.0

-



This article was previously published under Q234497



IN THIS TASK
 SUMMARY

Add New Document Types

 REFERENCES



SUMMARY
Microsoft Internet Information Services (IIS) versions 5.0 and later support HTTP compression as defined in the HTTP specification. By default, HTTP compression only compresses files with a file name extension of "htm," "html," and "txt." This article explains how to specify additional document types for compression.

Note The first Microsoft Exchange Server version that natively supports HTTP compression is Exchange Server 2003. For additional information how to enable HTTP compression in Exchange Server 2003, click the following article number to view the article in the Microsoft Knowledge Base:

830827 How to manage Outlook Web Access features in Exchange Server 2003

back to the top

Add New Document Types
To add the document types for Microsoft Word, Microsoft PowerPoint, and Microsoft Excel to the default list of documents and restart the IIS services, follow these steps:

NOTE: The commands in step 3 replace the previously defined file extensions. It does not append them to the existing file extensions.  Open a command prompt session. To do this, click Start, click Run, type CMD, and the click OK. Change the directory to your \InetPub\AdminScripts folder. To do this, type CD \Inetpub\AdminScripts, and then press ENTER.  Type the following commands: CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/GZIP/HcFileExtensions "htm" "html" "txt" "doc" "ppt" "xls"

CSCRIPT.EXE ADSUTIL.VBS SET W3Svc/Filters/Compression/DEFLATE/HcFileExtensions "htm" "html" "txt" "doc" "ppt" "xls"

IISRESET.EXE (this will reset Web services)  Close the command prompt session.</li></ol>

back to the top

<div class="references_section">