Score:1

Configuring different apps in Nginx using same domain

us flag

I have an ecommerce application running 2 applications. App 1 (example1.com) is written as react.js and built as a normal html site. Nginx is serving this on port 7000. App 2 (my.example1.com) is a java application and nginx proxies this to tomcat using a different port.

I now need to be able to make cross app calls between these 2 applications and maintain certificates and cookies between them. Our thought is to move my.example.com to example.com/app2 thereby putting both apps on the same domain which we believe will maintain the certificate and cookies.

I however am not sure how to configure nginx for app2 (example.com/app2)

Can this be done? Examples would be greatly appreciated.

another victim of the mouse avatar
cf flag
Does this answer your question? [Two domains, two SSL certificates, one IP](https://serverfault.com/questions/605195/two-domains-two-ssl-certificates-one-ip)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.