Requesting explanation of config files in /etc/apache2 (Debian Etch, Apache 2.2.3)

Discussion in 'Server Operation' started by rjamesd, Aug 20, 2007.

  1. rjamesd

    rjamesd New Member

    I'm using Apache 2.2.3 on Debian Etch (4.0) and I'd like an explanation or reference to a document that describes the role of each of the configuration files in /etc/apache2/

    e.g.: -

    -rw-r--r-- 1 root root 24175 2007-03-27 13:53 apache2.conf
    drwxr-xr-x 2 root root 4096 2007-05-18 18:18 conf.d
    -rw-r--r-- 1 root root 895 2007-03-27 13:58 envvars
    -rw-r--r-- 1 root root 0 2007-07-31 14:38 httpd.conf
    drwxr-xr-x 2 root root 4096 2007-08-14 15:58 mods-available
    drwxr-xr-x 2 root root 4096 2007-05-18 18:23 mods-enabled
    -rw-r--r-- 1 root root 10 2007-05-18 18:18 ports.conf
    drwxr-xr-x 2 root root 4096 2007-08-20 13:50 sites-available
    drwxr-xr-x 2 root root 4096 2007-07-31 15:05 sites-enabled

    I know that they are files for configuring the behaviour of the apache web server, for example, how it responds to URL requests. But I thought that all of this was done in only httpd.conf In my configuration, by default, httpd.conf is empty, with much of the configuration in apache2.conf and in a file called 'default' in folder sites-available.

    Searching and its forums and have so far not given me an explanation of these various files. Sure, the commands and directives within the files are documented reasonably well but nothing is said about in which files these should be placed and in what order and, even, why there are so many different files. The only file mentioned in documentation is httpd.conf

    Also it would be useful to be able to find out when Apache reads these files and what it reads within them.
  2. falko

    falko Super Moderator ISPConfig Developer

    The main configuration file is apache2.conf, and all other files are included in it.
    Modules are placed in mods-available and enabled by symlinking them from mods-enabled. The same goes for the virtual hosts (sites-available <=> sites-enabled).
  3. rjamesd

    rjamesd New Member

Share This Page