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.

A closer look at the Apache configuration

A closer look at the Apache configuration - 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

A closer look at the Apache configuration

- [Instructor] The main Apache configuration file is stored in /etc/httpd/conf/httpd.conf. Let's take a closer look at the layout. The Apache configuration file has a long list of possible directives. Directives are key value pairs. Comments start with a hash symbol. Global directives are alone on the line, but directives can be inside a container. A container begins a container name within angle brackets. The container holds various directives, and then close similar to how HTML or XML works. We won't cover all directives in this video as there's over 650 of them, but I will highlight some more common ones. Listen specifies the IP address and ports to listen to. ServerRoot is the base directory for the server installation. ServerAdmin is the email address that the server includes in messages sent to the client. ServerName is the hostname and port that the server uses to identify itself. User is the user that the Apache server runs as. Group is the group that the Apache server runs…

Contents