How can we implement IIS Compression in IIS7

Posted by Karthikanbarasan under IIS on 1/27/2011 | Points: 10 | Views : 3075 | Status : [Member] [Moderator] [Microsoft_MVP] [MVP] | Replies : 4
Can any one suggest the best step by step process of implementing IIS Compression in IIS7?

Thanks
Karthik
www.f5Debug.net



Responses

Posted by: Krkc on: 1/28/2011 [Member] Starter | Points: 25

Up
0
Down
Hey Karthik, try some of this link..

http://technet.microsoft.com/en-us/library/cc730629%28WS.10%29.aspx


Thanks,
Ravi

Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/28/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi ravi...

This page is not working... it shows

Page Not Found
We're sorry, but the page you requested could not be found. Please check your typing and try again,
or use the search options on this page.



Thanks
Karthik
www.f5Debug.net

Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Krkc on: 1/31/2011 [Member] Starter | Points: 25

Up
0
Down
Karthik, I can open this link.. not sure why it is not opening for you.

Anywayz.. I have copied the steps written in Microsoft Site and here it goes..

To configure compression

You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.
User Interface
To Use the UI

1.

Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).
2.

In Features View, double-click Compression.
3.

Choose one or both of the following:
1. Enable dynamic content compression to configure IIS to compress dynamic content.

2. Enable static content compression to configure IIS to compress static content.

4.

If Enable static content compression is selected, under Static Compression,
1. In the Only compress files larger than (in bytes) text box, type the minimum file size that you want IIS to compress. The default size is 256 bytes.

2. In the Cache directory text box, type the path of a local directory or click the browse button (.) to locate a directory. After a static file is compressed, it is cached in this temporary directory until it expires, or until the content changes. The temporary directory must be on a local drive on an NTFS-formatted partition. The directory cannot be compressed, and should not be shared.

3. Optionally, select the box next to Per application pool disk space limit (in MB) and type the maximum amount of space per application pool, in megabytes, you want IIS to use when it compresses static content. For example, if there are 20 application pools on the server and the Disk space limit is set to 100, the maximum disk space will be 2GB. If you click the Per application pool disk space limit (in MB) option and type a number in the text box under it, IIS automatically cleans up the temporary directory according to a least recently used rule when the set limit is reached. The default is 100 MB per application pool.

5.

Click Apply in the Actions pane.

Command-line
Enable dynamic content compression

To enable HTTP compression of dynamic content, at the command prompt, type the following command, and then press Enter:

appcmd set config /section:urlCompression /doDynamicCompression:True
Enable static content compression

To enable HTTP compression of static content, at the command prompt, type the following command, and then press Enter:

appcmd set config /section:urlCompression /doStaticCompression:True
Configure static content compression settings

To configure static content compression settings, use the following syntax:

appcmd set config /section:urlCompression /minFileSizeforComp: int /directory: string /maxDiskSpace: int

The variable minFileSizeforComp int sets the minimum number of bytes a file must contain for it to be compressed. The default value is 256. The variable directory string specifies the directory where compressed versions of static files are temporarily stored and cached. The default is %SystemDrive%\inetpub\temp\IIS Temporary Compressed Files. The variable maxDiskSpace int sets the maximum amount of space per application pool, in megabytes, you want IIS to use when it compresses static content. The default is 100 MB per application pool.

For more information about Appcmd.exe, see Appcmd.exe (IIS 7).
Configuration

The procedure in this topic affects the following configuration elements:

* <httpCompression>

For more information about IIS 7 configuration, see IIS 7.0: IIS Settings Schema on MSDN.
WMI

Use the following WMI classes, methods, or properties to perform this procedure:

* HttpCompressionSection class

For more information about WMI and IIS, see Windows Management Instrumentation (WMI) in IIS 7. For more information about the classes, methods, or properties associated with this procedure, see the IIS WMI Provider Reference on the MSDN site.


Thanks,
Ravi

Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 1/31/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
thanks let me check

Thanks
Karthik
www.f5Debug.net

Karthikanbarasan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response