Redhat: Apache Configuration
Apache Configuration Files
There are two main files used to configure Apache
/etc/httpd/conf /etc/httpd/conf.d/ssl.conf
There are several other files in these directories. Other services that work with Apache will install their own configuration files in the same directories.
Default Configuration
The http.conf files includes all of the files in conf.d as stating in the first line
Include conf.d/*.conf
Each directory, file or module to be configured is contained in <> brackets
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
Apache Conf Directives
There are a large number of directives used throughout the files There are too many to list here - please see http://localhost/manual/mod/quickreference.
There are a few Directives that need to be understood even from a simple webserver
| DocumentRoot | Where to look for the web pages | /var/www/html |
| DirectoryIndex | What file to look for in DocumentRoot | index.html |
| ServerRoot | Base location of the logs and Conf files | /etc/httpd |