How to Run Virtual hosts in Apache webserver

In this articles we will see about setting up virtual hosts on apache. Virtual host helps us to run multiple web sites on a single server. There are 2 types of virtual hosting in Apache, Types of Virtual hosts: Name-based virtual hosting. IP-based virtual hosting. Name-based virtual hosting: Name-based vitual hosting allows you to run more domains under a single IP. The conf directory for virtual host is /usr/local/apache-2.4.37/conf/extra/httpd-vhost.conf ServerAdmin webmaster@dummy-host.example.com DocumentRoot "/usr/local/apache-2.4.37/docs/dummy-host.example.com" ServerName dummy-host.example.com ServerAlias www.dummy-host.example....