Questions tagged [nginx-upstreams]
50 questions
0
votes
0 answers
connect() to unix:/run/php-fpm/phpfm.sock failed (111: Connection refused) while connecting to upstream
Not sure where to start. I'm moving my wordpress/nginx from server 1 to server 2. Config was almost identical except the server 2 which is the new server using the latest PHP(8.2), php-fpm 8.2 and Nginx 1.14.1, Rocky 8. Server 1 was PHP7.4…

Le Dude
- 185
- 10
0
votes
0 answers
why nginx load balancer over port 80 loads nginx welcome page?
I am trying to make a load balancer using nginx upstream. My nginx upstream config is as below:
upstream my_upstream {
server test.mydomain.com:80;
}
server {
server_name upstream.mydomain.com;
location / {
proxy_pass…

hamid
- 694
- 1
- 8
- 20
0
votes
0 answers
nginx upstream not taking target IP for loading resources
Hi I am trying to load balance 2 web application which are based on Angular 7. Each application has set of resources like assets folder, js, css, images to be loaded when we are on the landing page.
I am using following configuration to setup…

TheAkashKamble
- 181
- 2
- 17
0
votes
1 answer
Nginx Load Balance with proxy_ pass
I am working on nginx proxy pass with load balancer and the problem is that I have 2 different url for both the backend server, let say my domain is xyzzy.com and 1 request out of 10 should go to xyz-1.com/123/xyz/andsoon and another 9 request…

user3568034
- 1
- 2
0
votes
0 answers
Nginx - send index.html on all routes other than /api
I am using Nginx as reverse proxy to serve react application and backend api.
upstream api {
server localhost:5000;
}
server {
root /var/www/example.com/html;
index index.html index.htm index.nginx-debian.html;
…

LuckyLuke
- 1,028
- 2
- 14
- 28
0
votes
1 answer
Redirect all the headers from upstream to another location in nginx
Could you please tell me if it's possible to redirect all the headers in nginx from upstream /auth_gateway to /connection.
My request and nginx configuration
curl -silent -include -X 'GET' -H 'Authorization: Bearer…

krytopes
- 5
- 4
0
votes
1 answer
Kong load balance where upstream has different root paths?
I'm using Kong OSS (not container or k8s deployed) trying to load balance a backend two backend services for testing. My challenge is one requires authentication and different backend path port, whereas the other does not.
Frontend 1 - Kong API…

The Unique Paul Smith
- 636
- 2
- 8
- 22
0
votes
0 answers
nginx reverse proxy upstream server using domain name (ex. www.test.com)
I have a website hosted somewhere in some server. lets say the domain name is https://www.test.com
Now, I am working on setting up the reverse proxy for this website using the upstream server for this domain name and it is not working.
I don't want…

Dutta
- 49
- 1
- 1
- 3
0
votes
0 answers
How to build nginx-upstream-module in docker container
When I am trying to build nginx-upstream-module in docker container, I got following error.
./config: line 13: auto/have: No such file or directory
Can anyone help me, how to build nginx-upstream-module in docker container or
what is meant by the…

Vishal Gaikwad
- 21
- 3
0
votes
1 answer
Can Nginx automatically update the upstream servers details without Nginx reload
I am seeing nginx upstream as follows
upstream entities {
server entities.qa.local:8888;
}
upstream workflow {
server workflow.qa.local:9999;
}
Some times server went down and up on its own at that time their internal ips will get…

Naveen Digumurthy
- 35
- 7
0
votes
0 answers
Nginx connect() failed (111: Connection Refused) while connecting to upstream
I'm trying to deploy a MERN app to a DigitalOcean droplet using Nginx (I've used a connection string to connect to a MongoDB atlas instance). The frontend static files seem to successfully work, but I face two issues when it comes to the backend (a…

a_arbshhi
- 11
- 1
- 4
0
votes
1 answer
NGINX not proxying request to upstream if client send TCP FIN immediately after sending data
I have client (10.1.30.29), that sends HTTP requests to server (port 6500, 10.1.30.11-127.0.0.1) behind NGINX reverse proxy (port 80, 10.1.30.11-127.0.0.1). Most of the times (~5 of 6), server is not receiving requests.
Digged into with wireshark, I…

Nikolay Klimov
- 121
- 6
0
votes
1 answer
Setup nginx uptream for multiple php-fpm containers - recv() failed
I am new to nginx. I am trying to setup nginx with 2 different upstreams for my backend and my frontend apps (both are Symfony apps)
Here is my docker-compose file
services:
#PHP Back-End Service
backend:
build:
context: .
…

François Minh
- 206
- 2
- 6
0
votes
0 answers
nginx upstream servers with https authorization
I have some problem with my config.
If I add upstream HTTPS servers authorization didnt work.
Working config
upstream facturatest {
server s1test.com:443 max_fails=3 fail_timeout=10s;
server s2test.com:443 backup;
}
server {
…
0
votes
2 answers
nginx -- no live upstreams while connecting to upstream
I have nginx version 1.19.3 installed on my CentOS 7 server. My rocketchat application working on port 3000, 3001 and 3002. But my nginx server is not able to route proxy to Rocketchat. It is giving me 502 Bad Gateway error.
Here is my…

Abdul Rauf
- 464
- 6
- 22