There are three ways to host multiple websites on a single server:
Name-based Virtual Hosting. IP-based Virtual Hosting. Port-based Virtual Hosting. In this tutorial, we will explain the process for hosting two websites on a single server in three different ways.
Prerequisites A fresh Ubuntu 18.04 VPS on the Atlantic.Net Cloud Platform. Two valid domain names or subdomain names pointed to your VPS IP address. In this tutorial, we will use site1.example.com and site2.example.com as subdomains.