Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

276
Views
NGINX: Same Hash for multiple upstreams

I've multiple upstreams with same 2 servers in different ports for different apps, but I would need it to keep a consistent connection to the server. Example:

 upstream APP {
         ip_hash;
         server 10.10.10.1:1111;
         server 10.10.10.2:1111;
         }      

 upstream APP_HTTP {
         ip_hash;
         server 10.10.10.1:2222;
         server 10.10.10.2:2222;
         }  

 upstream APP_WS {
         ip_hash;
         server 10.10.10.1:3333;
         server 10.10.10.2:3333;
         }       


....

 location /APP {
                proxy_pass http://APP;
        }

 location /APP_HTTP {
                proxy_pass http://APP_HTTP;
        }

 location /APP_WS {
                proxy_pass http://APP_WS;
        }

So if a user is redirected at APP starting point to server 10.10.10.1, I need to guarantee that for APP_HTTP and APP_WS goes as well to 10.10.10.1.

Is it possible? How? IP_Hash seems to not be working as I would expect.

Thanks Best regards

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!