json files download
Reinis Rozitis
r at roze.lv
Thu Jun 21 13:59:49 UTC 2012
You have to add .json to your mime.types file (the default for unknown file extensions is default_type application/octet-stream;
which usually all browsers download).
Egg open conf/mime.types find the line:
text/plain txt;
add json there:
text/plain txt json;
.. and reload or restart nginx (clear browser cache to be sure).
rr
-----Original Message-----
From: umar
Sent: Thursday, June 21, 2012 4:51 PM
To: nginx at nginx.org
Subject: json files download
Hi,
I have moved from apache to NGINX+PHP-FPM, now there some problem with
.json file, In apache whenver I access .json file the output shows on
browser page. But in NGINX its try to download.
Would you please help me who to solve this issue?
Best Regards,
Umar
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,227766,227766#msg-227766
_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list