What is a VirtualHost in Apache Web Server?

Problem scenario
You do not think that Apache web server does virtualization (like a hypervisor). But you see the term Virtual Host when you read about Apache web server configurations. What is a VirtualHost in the context of Apache web server?

Solution

"Apache Virtual Hosts A.K.A Virtual Host(Vhost) are used to run more than one web site(domain) using a single IP address. " (This was taken from https://dasunhegoda.com/what-how-to-apache-virtual-host/444/.)

Apache web server usually publishes a directory of files to be presentable to a web browser. When there is more than one domain and those other domains are mapped to different directories, they are virtual hosts.

'Each domain or individual site — known as a “virtual host” — that is configured using Apache will direct the visitor to a specific directory holding that site’s information.' (This was taken from https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04.)

Virtual Hosts are not the same as hypervisor virtualization.

Leave a comment

Your email address will not be published. Required fields are marked *