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,500 courses taught by industry experts or purchase this course individually.

Configure a basic Apache web server

Configure a basic Apache web server - 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 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…

Contents