IIS6.0在站点级别为特定扩展启用Http压缩

发布于 2024-09-10 14:15:49 字数 590 浏览 2 评论 0原文

我想使用 adsutil.vbs 在 IIS6.0 中启用 HttpCompression。据我所知,我可以为通用服务器级别以及 IIS 下的特定网站启用它。 (我使用了这个http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/502ef631-3695-4616-b268-cbe7cf1351ce.mspx?mfr=true 作为主要资源)..

但是我的问题不同。我想指定要压缩的扩展名(准确地说是 asmx)。这在网络服务器级别完全可行,但不知何故我无法理解,如何在站点级别设置它。这是必需的,因为在部署场景中,可能有多个 Web 应用程序托管在同一 IIS 下,并且除了我的应用程序之外,客户端对打开 asmx 压缩不感兴趣。

有人可以帮忙吗?

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 under 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

A君 2024-09-17 14:15:49

在进一步研究时,我发现了此资源,它解释了启用站点级别的压缩。

简而言之,步骤如下:

  1. 打开 Internet 信息服务 (IIS) 管理器:
  2. 在“连接”窗格中,转到要为其启用压缩的连接、站点、应用程序或目录。
  3. 在“主页”窗格中,双击“压缩”。
  4. 在“压缩”窗格中,选中复选框以启用静态或动态压缩,或删除复选标记以禁用静态或动态压缩。
  5. 完成上述步骤后,单击“操作”窗格中的“应用”。

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

  1. Open Internet Information Services (IIS) Manager:
  2. In the Connections pane, go to the connection, site, application, or directory for which you want to enable compression.
  3. In the Home pane, double-click Compression.
  4. In the Compression pane, check the boxes to enable static or dynamic compression, or remove the check marks to disable static or dynamic compression.
  5. Once you have completed the above steps, click Apply in the Actions pane.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文