Tag Archives: Name-Based Virtual Hosting

How to Set Up Name-Based Virtual Hosting (Vhosts) With Apache Web Server on CentOS 7

Introduction

The Apache web server is the most popular web server all over the world. Virtual hosting is a method for hosting multiple websites (domains) on a single server. You can host multiple websites on a single machine with a single IP using virtual hosting. All domains on that server will be sharing a single IP. Virtual hosting is very useful in shared web hosting environments, where hundreds of websites are hosted on a single dedicated server.

In this article we will be hosting two websites (www.vhost1.com and www.vhost2.com) on a single IP address (192.0.2.0).

Requirements

  • A server running CentOS v. 7 with Apache installed
  • A desktop machine running Linux
  • A static IP address.

Continue reading How to Set Up Name-Based Virtual Hosting (Vhosts) With Apache Web Server on CentOS 7