在IIS加对SL的支持 How do I add a new file extension / MIME type?

本文介绍如何为新的文件扩展名创建MIME类型,使不同类型的文件能在浏览器中正常工作。主要步骤包括登录服务器、使用IIS管理工具添加MIME类型及重启IIS服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The following article explains how to create a MIME type for a new file extension. This will allow different file extensions to work in a web browser.

To add a new MIME type, please follow these steps:

  1. Log into your server through Terminal Services or Remote Desktop Connection.
  2. Click Start, select Programs, and then click Administrative Tools.
    • For IIS 5.0 click Internet Services Manager.
    • For IIS 6.0 click Internet Information Services.
  3. In the left column you will see the Server Name.
    • In IIS 5.0, expand the Server Name to find the domain name.
    • In IIS 6.0, expand the Server Name and then Web Sites to find the domain name.
  4. Right-click on the domain name and select Properties.
  5. On the HTTP Headers tab click MIME Types.
  6. Click New.
  7. Enter the appropriate information:
  8. Click Ok.

You may need to restart the IIS service for the MIME type to begin working.

To restart the IIS service, please follow these steps:

  1. Click Start, select Run, type command to open a command prompt.
  2. Type iisreset and press Enter. This will stop the IIS service and then restart it.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值