Welcome! Log In Create A New Profile

Advanced

Blank Pages

May 15, 2018 08:14AM
I’m wondering if there’s a simple way to solve this problem.

The upstream application sometimes returns a blank 500 error which Nginx then serves as the blank page. This is working as intended. But what I’d like Nginx to do is display a custom error page if the upstream 500 error is blank, but if the upstream 500 page is not blank, then I want to serve the upstream 500 error page.

Has anyone ever come up with a way to handle a case like that?

I was thinking of having a custom header in the upstream app and if that header doesn’t exist, then serve a page from Nginx but before I run down that path I thought I’d ask. I cannot use proxy_intercept_errors on; because the upstream app serves customized 404 errors that I would lose.

___________________________________________
Michael Friscia
Office of Communications
Yale School of Medicine
(203) 737-7932 - office
(203) 931-5381 - mobile
http://web.yale.eduhttp://web.yale.edu/

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

Blank Pages

wickedhangover May 15, 2018 08:14AM

Re: Blank Pages

Maxim Dounin May 15, 2018 10:30AM

Re: Blank Pages

wickedhangover May 15, 2018 10:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 297
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready