From the course: Apache Web Server: Administration
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Anatomy of a virtual host - Apache Tutorial
From the course: Apache Web Server: Administration
Anatomy of a virtual host
One of Apache's features is virtual hosting, which is the ability to serve content for multiple domains using the same server. Shared web hosting is the most common place to find this type of configuration. As it's very cost effective to be able to serve content from multiple domains from the same server, rather than setting up an entire server for each domain. Apache provides two types of virtual hosting. Name-based virtual hosting routes requests based on the domain names applied by the client, which is usually the browser. This is the easiest kind of virtual hosting to implement but presents challenges for SSL, as the server doesn't know which certificate to be using. In contrast, IP-based virtual hosting requires a separate IP address for every site. This solves the SSL certificate problem but is more cost prohibitive and has more technical overhead. With this context, let's go back and take a look at the configuration for the LS site. Switch back to the terminal. I'm going to use…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.