Score:0

How do I host Node.js and WordPress sites on the same domain name with a different server?

mx flag

I would like to host 2 different applications on a different server. For eg www.example.com redirected the NodeJS application - Server A & www.example.com/blog redirected the WordPress application - Server B both applications are hosted in a different server.

is it possible to host Node.js and WordPress sites on the same domain name with a different server?

Score:0
gp flag
Tim

Yes. In AWS the best way is probably to use an application load balancer with path based routing. This will send traffic to the correct server based on path.

Another way that is less bandwidth efficient but cheaper if bandwidth is ignored is to set up a reverse proxy such as Nginx on one of the servers, redirecting traffic to the other server. All traffic hits the first server, but selected traffic is passed to the second server. In AWS this will probably cost more due to bandwidth charges.

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.