课程: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Configure a virtual host on a non-standard port - Red Hat Enterprise Linux教程
课程: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
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.…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。