课程: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Configure a basic Apache web server - Red Hat Enterprise Linux教程
课程: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND
Configure a basic Apache web server
- [Instructor] In order to configure a basic web server you need to already have done the following, Apache needs to be installed. You need to comment out all lines in the welcome.conf file and restart the Apache service so the new configuration is loaded. And lastly, the DNS name rhhost1.localnet.com needs to resolve to your rhhost1 VM's IP address. These things were covered in the installation video in the previous chapter. Once you've done these things, log into your rhhost1 VM and open a terminal. We'll start by checking the Apache configuration file for the web document root. Type in grep space caret, document root with capital D and a capital R. Space slash ETC slash httpd slash conf, slash httpd dot conf and hit enter. This shows that the web document root is slash var slash www slash html. Also let's check the allowed directory index files. Bring your line back and change the search criteria to directory index, with a capital D and a capital I, and then hit enter. This shows…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。