Welcome! Log In Create A New Profile

Advanced

Re: json files download

Reinis Rozitis
June 21, 2012 10:02AM
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@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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

json files download

umar June 21, 2012 09:51AM

Re: json files download

Reinis Rozitis June 21, 2012 10:02AM

Re: json files download

umar June 21, 2012 10:17AM

Re: json files download

Valentin V. Bartenev June 21, 2012 10:02AM

Re: json files download

bach November 19, 2012 09:54PM

Re: json files download

Justin Dorfman November 19, 2012 10:32PM

Re: json files download

bach November 19, 2012 10:48PM

Re: json files download

Justin Dorfman November 19, 2012 11:10PM

Re: json files download

bach November 19, 2012 11:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready