In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to configure iis6,iis7.5 to support parsing .json format files, the editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Configure iis to support .json format files
It is found that it is not as simple as adding mime to make IIS support json files. Here is how to set it:
I. IIS 6
1. MIME settings:
In the HTTP header setting of the site properties of IIS, click "File Type"-"New Type" in MIME Mapping, and add a file type:
Association extension: * .json
Content type (MIME): application/x-javascript
2. Script Map Handler settings:
Also in the site properties of IIS, "Home Directory"-"Application Settings"-"configuration"-"Mapping"-"add" will open the settings page of "add / Edit Application extension Mapping"
Extension: .json
Run the file: C:\ WINDOWS\ system32\ inetsrv\ asp.dll
Action: GET,POST
3. Save and restart the IIS service to access the json file.
Note: if the above steps do not work, please check to see if your IIS is enabled for asp support.
2. IIS 7 +
1. Iis must enable asp support. If your iis does not support asp by default, go to Control Panel-programs-turn on or off windows functions-internet Information Services-World wide Web Services-Application Development function, select asp, and then make sure.
2. After enabling asp support, go to Control Panel-system and Security-Management tools-internet Information Service Manager, and open "MIME Type". Click add, the extension ".json" [no quotation marks], the MIME type "application/x-javascript" [no quotation marks], and then OK.
3. Open "handler mapping", click "add script mapping", write the request path "* .json" [without quotes], the executable file is "C:\ Windows\ System32\ inetsrv\ asp.dll" [locate the file through the browsing window], and the name is "JSON". Then open the request limit-- predicate-- one of the following predicates, fill in "GET,POST" [without quotation marks], and the prompt will pop up after two confirmations. Click "Yes" and restart IIS.
4, through the browser access: http://localhost/xxx.json, you should be able to display json data, if there is a download prompt, check the above steps for spelling mistakes, if not, restart the computer, it should be OK.
The following picture and text supplement
Add MIME types to the site to support parsing of Json files
Add mime type
File extension: .json
MIME type: application/json
You can add it successfully.
If you can't directly manipulate iis, you can also add support to web.config directly.
Add under the system.webServer node
This is the end of this article on "how to configure iis6,iis7.5 to support parsing .json format files". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.