Welcome! Log In Create A New Profile

Advanced

NGINX proxy_pass background request

Posted by Ultra2020 
NGINX proxy_pass background request
June 25, 2020 12:15PM
Hi,

i have the following problem. I have two Applikations each of them have authentication module so when i wants to login the authentication module verfify my data but for each Applikation the authentication module have a different ip.

I need an idea how i can solve this, because the path that the Applikation opens in the backgrounds is the same on both applications

Maybe this example explains it better

location /app1 {
proxy_pass http://IP1:8000;
}

https://IP1/app1 when i login the app opens the background request with https://IP1/auth

location /auth {
internal
proxy_pass http://IP1:8001;
}

location /app2 {
proxy_pass http://IP2:8000;
}

https://IP1/app1 when i login the app opens the background request with https://IP2/auth

location /auth {
internal;
proxy_pass http://IP2:8001;
}


Is this possible without changing the application so that both application can start a request to /auth on different ip addresses?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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