{"id":20732,"date":"2016-11-16T07:47:44","date_gmt":"2016-11-16T13:47:44","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=20732"},"modified":"2022-12-07T10:07:13","modified_gmt":"2022-12-07T16:07:13","slug":"apache-virtual-hosts-on-centos","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/apache-virtual-hosts-on-centos\/","title":{"rendered":"How to set up Apache Virtual Hosts on CentOS 7"},"content":{"rendered":"
<\/p>\n
Today we will show you How to setup Apache Virtual Hosts on CentOS 7. Apache is an open source web server developed for modern operating systems including UNIX and Windows. It is a secure, efficient and extensible server that provides HTTP services synchronized with the current HTTP standards.<\/p>\n
Many people use it to host their websites and apps. In fact, according to the latest statistics, Apache is the most used web server in the world, with Windows IIS following in second and in third the Russian machinery that is Nginx<\/a>. To setup Apache Virtual Hosts on CentOS 7 just follow our step by step tutorial below.<\/p>\n Apache’s functionality is great and one can find lots of good features for his website or application. In this tutorial, we will provide you with info about Apache Virtual Host through configuration examples on a CentOS 7 VPS<\/a>.<\/p>\n A virtual host is, in fact, a unit that describes an individual domain in the grand scheme of the Apache web server. It enables you to host multiple websites using one server which is very useful for people that have more than one website.<\/p>\n Every domain that is configured with a virtual host directive inside Apache’s config will direct the visitor to a specific directory where that very website is hosted on the server. For example, you might have your WordPress site installed in \/var\/www\/wordpress\/<\/strong> so when creating the virtual host directive, the document root for the site will be set to \/var\/www\/wordpress<\/strong>\/ which will enable the web server to pull the website data from the respective configured directory.<\/p>\n So let’s focus on our task at hand now.<\/p>\n Table of Contents<\/p>\n