Safinn
By:
Safinn

Two domains pointing to two different apps on same droplet

September 20, 2015 1.4k views
Nginx Node.js DNS One-Click Install Apps Ghost Ubuntu

So I got an ubuntu droplet with the ghost blogging platform installed on it. I added a domain on the DNS page for the droplet which i can now access and it takes me to the ghost blog. I also added the domain to the etc/nginx/ghost file.

I have now added a node.js app on the vm in the var/www location next to the ghost app and i want to point a new domain to that application. I'm new to nginx and managed servers like this. How do i get the new url to point to the node app.

Thanks for the help.

1 comment
  • Have a look at: Vhosts in Ubuntu

    by Justin Ellingwood
    The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 14.04 VPS.
1 Answer

This question was answered by @Archie22is:

Have a look at: Vhosts in Ubuntu

View the original comment

by Justin Ellingwood
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 14.04 VPS.
Have another answer? Share your knowledge.