HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Requesting explanation of config files in /etc/apache2 (Debian Etch, Apache 2.2.3) (http://www.howtoforge.com/forums/showthread.php?t=14921)

rjamesd 20th August 2007 16:02

Requesting explanation of config files in /etc/apache2 (Debian Etch, Apache 2.2.3)
 
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 howtoforge.com and its forums and apache.org 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.

falko 21st August 2007 17:07

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).

rjamesd 24th August 2007 13:16

Falko, thanks very much, I also found:

http://www.debian-administration.org/articles/101

I asked the original question because I am having a problem with pages that use cgi-bin scripts - see thread: http://www.howtoforge.com/forums/showthread.php?t=15032


All times are GMT +2. The time now is 16:13.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.