nginx returns html instead of json response
Francis Daly
francis at daoine.org
Wed Nov 23 17:48:12 UTC 2022
On Tue, Nov 22, 2022 at 07:52:41PM +0530, Kaushal Shriyan wrote:
Hi there,
> map $sent_http_content_type $enableerror {
> default on;
> application/json off;
> }
I believe that from a timing point of view, that variable is not going
to have a useful value when you want to use it.
> I have attached the nginxtest.conf file for your reference. It is not
> working for me. Am I missing anything? Please guide me.
The test conf file does not appear to include the seven lines that I
suggested you add.
And "is not working" is an incomplete problem report.
Cheers,
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list