What is a virtual host? relating to web servers

387 views

I understand the basic premise of web servers, but have never quite wrapped my head around what the hell a virtual host is or means, please ELI5!

In: 2

7 Answers

Anonymous 0 Comments

It’s a way of hosting multiple domains on the same machine. So for instance alice.com, bob.com and carol.com may be completely different pages, but located on the same machine, on the same public IP address. Which site you see depends on what domain you came from.

For Apache for instance you can configure it in such a way that all 3 sites have files in different paths, have their own separate logs and are configured differently.

You are viewing 1 out of 7 answers, click here to view all answers.