Create Virtual Hosts for Apache on CentOS
For each website (domain or subdomain) you need a Virtual Host, a file that contains information for Apache to find where the website's files are on your server, how to access them, where to write the logs, etc.