Host multiple domain on the centos

Posted July 24, 2015 18.2k views

I am not able to host another domain “” on my droplet . Please help me .

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

You should define virtual hosts in your web server, Take a look at the following guides and choose which works for you:

How To Set Up Apache Virtual Hosts on CentOS 7

How To Set Up Nginx Server Blocks on CentOS 7

by Josh Barnett
Nginx uses to manage configurations for an individual site or domain. Server blocks allow one server to host multiple domains or interfaces by using a matching system. This is relevant to anyone looking to host more than one site off of a single VPS. In this guide, we will walk through how to set up Nginx server blocks on a CentOS 7 VPS.