I have one dedicated server in that server I deployed 5 nodejs application.
domain name: www.nnd.com
dedicated server ip: xxx.xx.x.60
I had
You can create virtual host for every sub domain.
For Ex you have 2 sub domain abc.xyz.com and abcd.xyz.com , and you want to host it on nginx single instance by proxy_pass then you can simply create virtual host for every sub domain
server {
server_name abc.xyz.com;
location / {
proxy_pass http://127.0.0.1:8000;
}
}
server {
server_name abcd.xyz.com;
location / {
proxy_pass http://127.0.0.1:8000;
}
}
For more information you can refer here