IIS 6 executing html as aspx

一世执手 提交于 2019-12-04 06:02:11

问题


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


回答1:


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\Framework\v2.0.50727\aspnet_isapi.dll

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.



来源:https://stackoverflow.com/questions/4856365/iis-6-executing-html-as-aspx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!