From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configure basic virtual host

Configure basic virtual host - Red Hat Enterprise Linux Tutorial

From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Start my 1-month free trial

Configure basic virtual host

- [Instructor] For this exercise, you'll want to be logged into rhhost1 and have a terminal open. Virtual hosts let us have more than one website per server. We can have different logs, site name, and access control for a virtual host as well. Let's create a basic virtual host now. I've created a virtual host file for you and included it in the exercise files for chapter six. To use the exercise files archive, start by downloading it for this course, extract it into user one's home directory. This should give you a folder in /home/user1/exercisefiles. As soon as that's done, be sure you are in user one's home directory. To copy the file, go to your home directory where you extracted the exercise files ZIP archive in chapter three of this course. And then type in sudo space cp space ExerciseFiles/Ch06 for chapter six /etc/httpt/conf.d/vhost1.conf space /etc/httpd/conf.d and hit enter. Now let's take a look at this file so we understand it. Type in less space…

Contents