add .json handler support in IIS 7
2015-10-20 14:10
567 查看
Sometimes we need to create JSON in a text file with extension .json, however by default IIS 7 or any of the IIS are not configure to handle .json extension. So below is a very simple method to do that. You can apply the method on the root of IIS so .json can be handled by every site or virtual folder in the IIS or just to the specific site.
Open IIS Manager
Display properties for the IIS Server
Click MIME Types and then add the JSON extension:
File name extension: .json
MIME type: application/json
Go back to the properties for IIS Server
Click on Handler Mappings
Add a script map
Request path: *.json
Executable: C:\WINDOWS\system32\inetsrv\asp.dll
Name: JSON
Open IIS Manager
Display properties for the IIS Server
Click MIME Types and then add the JSON extension:
File name extension: .json
MIME type: application/json
Go back to the properties for IIS Server
Click on Handler Mappings
Add a script map
Request path: *.json
Executable: C:\WINDOWS\system32\inetsrv\asp.dll
Name: JSON
相关文章推荐
- JS日期时间类型(Y-m-d H:i:s)与时间戳互转
- js笔记 数组push和pop
- JSSE简介
- JavaScript基础2
- JS学习笔记一
- JavaScript中的property和attribute
- javascript基础01
- c:foreach遍历循环List<Map>
- 判断搜索引擎来路进行跳转的代码(PHP+JS)
- 二、JavaScript语言--JS动画--JS动画效果
- JS基本数据类型和引用数据类型的区别
- JS-----元素定位自动居中
- js模块化历程
- 常用js正则表达式
- jsp中select的onchange事件用法实例
- JSP EL表达式忽略方法
- JSP中param标签用法实例分析
- JSP实现的简单分页示例
- 【jstl&el】jstl和EL的区别和使用
- js 模块化历程