IIS 6执行HTML作为ASPX [英] IIS 6 executing html as aspx

查看:172
本文介绍了IIS 6执行HTML作为ASPX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,有没有办法来配置IIS6执行HTML扩展,如果他们的.aspx?

Hi is there a way to configure IIS6 to execute .html extensions as if they were .aspx?

推荐答案

好了,所以在IIS6您可以打开网站的属性并转到首页Dirctory选项卡中,有一个名为应用程序设置一节。在本节打了配置按钮,在这里你可以调整映射不同的扩展。我复制的ISAPI DLL路径从previous延伸,并增加了新的扩展映射:

Ok so in IIS6 you can open the website properties and go to the "Home Dirctory" tab and there is a section called "Application Settings". Under this section hit the "Configuration" button and here you can adjust the mappings for different extensions. I copied the isapi DLL path from a previous extension and added a new extension mapping for:

C:\ WINDOWS \ Microsoft.NET \框架\ V2.0.50727 \ aspnet_isapi.dll的

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

另外需要注意的是,如果你正在试图映射扩展不存在的文件(例如,如果你是URL重写),你必须确保取消选中,上面写着,以验证是否存在该文件中是很重要的。

Also it is important to note that if you are trying to map extensions to files that don't exist (eg if you are url rewriting) you have to make sure to uncheck the box that says to verify if the file exists.

这篇关于IIS 6执行HTML作为ASPX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆