How to specify additional document types for HTTP compression (234497)
The information in this article applies to:
- Microsoft Internet Information Services 5.0
- Microsoft Internet Information Services version 6.0
This article was previously published under Q234497 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.
back to the top
REFERENCES For more information about compression formats, visit the
following Web sites:
back to the top
Modification Type: | Major | Last Reviewed: | 6/14/2005 |
---|
Keywords: | kbhowto KB234497 |
---|
|