nginx returns html instead of json response

Francis Daly francis at daoine.org
Wed Nov 23 18:09:24 UTC 2022


On Wed, Nov 23, 2022 at 11:27:35PM +0530, Kaushal Shriyan wrote:
> On Wed, Nov 23, 2022 at 11:20 PM Francis Daly <francis at daoine.org> wrote:

Hi there,

> I am not sure about this line  error_page 555 /dummyfile; what does 555
> code mean and what will be the contents of dummyfile?
> 
> location ^~ /apis/ {
>                 fastcgi_intercept_errors off;
>                 error_page 555 /dummyfile;
>                 fastcgi_pass 127.0.0.1:9000;
>                 include fastcgi.conf;
>                 fastcgi_param SCRIPT_FILENAME
> /var/www/html/gsmaidp/web/index.php;
>         }

I thought I had explained it in the previous mails?

555 is an error code that you do not care about (because you do not
expect to see it).

You can remove either the "error_page" or the "fastcgi_intercept_errors"
line (or leave them both in).

What happened when you tried it?

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list