🌍Virtual Host
Also known as Vhost, Name-Based Virtual Host, Virtual Hosting
One web server that serves many sites. Each site has its own name and folder.
Think of it like
It is like one building with many shops. Each shop has its own name on the door.
Example
Emma's one server holds two sites with two names. Each name has its own virtual host and its own folder.
Why it matters
It is how one cheap server can hold many small sites.
Definition
Common mistake
Key takeaways
- 1Many names. One server, many sites.
- 2Picked by name. The browser says which site it wants.
- 3Own settings. Each site has its own folder and rules.