Exploring the Configuration Files

Apache once had just one relevant configuration file, which was called /etc/hpptd.conf. Those days are long gone. On SUSE Linux Enterprise Server, Apache maintains a complete structure of configuration files. The following list gives you an overview of the most important files. All the files mentioned here are in /etc/apache2 (unless specifically stated otherwise).

httpd.conf: This is the main configuration file. If you look in its contents, you will see that not much is configured here; the httpd.conf file just calls and includes other configuration files. This is, however, still the file where you should always start when analyzing a problem.

default-server.conf: This file in general contains the basic web server setup. For example, in this file, you will find the specification of the document root where the web server stores all its document files.

uid.conf: This is where you can set the default user and group ID that Apache is using.

server-tuning.conf: This file contains directives to optimize how the Apache 2 web server works.

ssl-global.conf: This is the main configuration file used to establish SSL encrypted connections.

vhosts.d: This directory contains the configuration files for virtual hosts.

listen.conf: This file contains the ports on which the Apache server is listening by default.

error.conf: This is where you specify what your server should do when a request cannot be handled correctly.

/etc/sysconfig/apache2: This file contains generic options that you want to pass to the Apache process when it is booting.

Was this article helpful?

0 0

Post a comment