Re: How to hide/restrict log/error message in browser from nginx server
Thanks for this !!! It works in my case Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295843,295864#msg-295864 ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org
Re: nginx returns html instead of json response
Hi Francis, I tried the below to handle JSON responses from the PHP-FPM backend. *Line no from 1 to 4(*nginxtest.conf*)* map $sent_http_content_type $enableerror { defaulton; application/json off; } *Line no from 46 to 51**(*nginxtest.conf*)* location = /erro