my nginx.conf file :

  location /XYZ/ {
            proxy_set_header X-Real-IP  $remote_addr;
            proxy_set_header X-Forwarded-For $remote_addr;
            proxy_set_header Host $host;
            proxy_set_header User-Agent $http_user_agent;
            proxy_pass http://xyz:83;
            proxy_redirect http://xyz:83/xyz/ /;

   }

    location = /ABC/ {
           proxy_set_header X-Real-IP  $remote_addr;
           proxy_set_header X-Forwarded-For $remote_addr;
           proxy_set_header Host $host;
           proxy_set_header User-Agent $http_user_agent;
           proxy_pass http://abc:89/abc/;
           proxy_redirect http://abc:89/abc/ /;
    }

if a request comes to XYZ java service , along with xyz a http call should be made to ABC java service simultaneously...

can this be happen in nginx ?

both the java services are running in Docker

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.