IIS6.0 Enable HttpCompression for specific extensions at site level
I want to enable HttpCompression in IIS6.0 using adsutil.vbs. I understand that i can enable it for generic server level as well as for a specific website u开发者_C百科nder IIS. (I used this http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/502ef631-3695-4616-b268-cbe7cf1351ce.mspx?mfr=true as a primary resource)..
However my question is different. I want to specify the extensions (asmx to be precize) to be compressed. That's perfectly doable at the webserver level but somehow I am not able to understand, how can i set it up at the site level . This is required because, in a deployment scneario, there could be multiple web apps hosted under same IIS and client is not interested in turning on compression on asmx other than my app.
Can someone help?
While researching further, I came across this resource which has explained about enabling the compression at site level.
In a nut shell here are the steps
- Open Internet Information Services (IIS) Manager:
- In the Connections pane, go to the connection, site, application, or directory for which you want to enable compression.
- In the Home pane, double-click Compression.
- In the Compression pane, check the boxes to enable static or dynamic compression, or remove the check marks to disable static or dynamic compression.
- Once you have completed the above steps, click Apply in the Actions pane.
精彩评论