zoukankan      html  css  js  c++  java
  • add .json handler support in IIS 7

    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.

    1. Open IIS Manager
    2. Display properties for the IIS Server
    3. Click MIME Types and then add the JSON extension:
      • File name extension: .json
      • MIME type: application/json
    4. Go back to the properties for IIS Server
    5. Click on Handler Mappings
      • Add a script map
      • Request path: *.json
      • Executable: C:WINDOWSsystem32inetsrvasp.dll
      • Name: JSON
  • 相关阅读:
    C++类模板的三种特化
    构造函数抛异常
    ScrapySharp
    QtWebKit
    visual studio 插件
    asp.net 开源
    cfr
    eclipse icon
    JAD Java Decompiler
    Java Decompiler
  • 原文地址:https://www.cnblogs.com/dupeng0811/p/4894653.html
Copyright © 2011-2022 走看看