I'm doing an upstream as below:
location /phpmyadmin {
resolver 127.0.0.11 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 127.0.0.11 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.
Thanks!