资料还是得看英文原版的![转]How To Serve .json files from IIS7 when request is POST
http://stackoverflow.com/questions/7943270/how-to-serve-json-files-from-iis7-when-request-is-post
|
|
You probably already found the answer, but I think the problem lies in that you need to add a ".json" handler for your web server... By default IIS is not configured to handle .json extension. You can apply the mime type as a handler 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.
(or Apache, if you're on the dev side...) Apache Module mod_mime AddType Note: In Ubuntu you ALSO need to edit the file /etc/mime.types and add the line:
Then restart Apache
|
浙公网安备 33010602011771号