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 a virtual host on a non-standard port

Configure a virtual host on a non-standard port - 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 a virtual host on a non-standard port

- [Instructor] Before you do this exercise, make sure you have completed the previous exercise which configured a basic virtual host. In this exercise we'll create a virtual host that answers on a non-standard port. I've chosen the port 8085 as it isn't being used for anything. Also for this exercise, you will want to be logged into rhhost1 with a terminal open. I have created a virtual host file for you and included it in the exercise files for chapter six. To copy the file go to your home directory where we extracted the exercise files zip archive and copied the vhost2.conf file to the apache conf.d directory. Type in sudo cp ~/ExerciseFiles/Ch06/etc/httpd/conf.d/vhost2.conf /etc/httpd/conf.d and hit enter. Type in your password if prompted. Now let's take a look at it. Type in les /etc/httpd/conf.d/vhost2.conf and hit enter. Notice that we're specifying *:8085 on the virtual host directive. The rest is almost identical to the previous virtual host outside of the domain name change.…

Contents