I have just installed nginx and have more than one domain name pointing to same IP. When calling each domain I have to redirect to different applications running on the same machine, each application is running on different port.
For ex, I have app1.domain.com, app2.domain.com & app3.domain.com
so, for app1.domain.com I have to redirect to localhost:<port1>
likewise, app2.domain.com I have to redirect to localhost:<port2>
and app3.domain.com I have to redirect to localhost:<port3>
How do I go about?
Thanks in advance