Welcome! Log In Create A New Profile


Nginx upstream white screen

Posted by rafael.silva 
Nginx upstream white screen
March 20, 2021 10:50AM
I'm doing an upstream as below:

location /phpmyadmin {
resolver valid=30s;
set $upstream_pma pma;
proxy_pass http://$upstream_pma:80/;

And phpMyAdmin doesn't work, it has a white screen. If I change the proxy_pass to http://pma:80/; it works perfectly.

Another location is working perfectly:

location /filebrowser {
resolver valid=30s;
set $upstream_file file;
proxy_pass http://$upstream_file:80;
I would like to use as above so that NGINX does not show errors when the upstream goes down.

Is the code above correct? Or is there any other way that NGINX does not display emerg when the container goes down.

Re: Nginx upstream white screen
March 20, 2021 01:29PM
rafael.silva Wrote:
> proxy_pass http://$upstream_pma:80/;
> proxy_pass http://$upstream_file:80;

Note the difference "/".

nginx for Windows http://nginx-win.ecsds.eu/
Re: Nginx upstream white screen
March 21, 2021 09:19AM
Thanks for the answer.

I tested it with "/", but phpMyAdmin gives a 404 error.

When I do the proxy_pass http://pma:80/ it works perfectly, without the "/" in the end 404 error.

Using the resolver, without the "/" 404 error, with the "/" white screen.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 316
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