The following list describes the file structure for Apache Web Server:
The string [version] should be expanded to "MAJOR.MINOR". For example, /usr/apache2/2.2/*.
Contains server configuration files. A newly-installed server contains a default httpd.conf file. This is the main configuration file.
Contains additional server configuration files.
By default, server will load all the .conf files placed under this directory. It also has 2 additional .load configuration files-modules-32.load and modules-64.load which contain LoadModule directives for loading the 32 and 64-bit bundled apache modules respectively. All the .conf files in this directory are included by the following line in httpd.conf:
Include /etc/apache2/2.2/conf.d/*.conf. You can add the additional configuration here.
Contains the environment settings that the server uses at startup.
When the /usr is mounted as read-only, you will not be able to modify the envvars file present in the following path /usr/apache2/[version]/envvars. To modify the environment settings you need to edit the envvars file present in the following path /etc/apache2/[version]/envvars.
Magic data for mod_mime_magic Apache module as documented in the
/usr/apache2/2.2/manual/mod/mod_mime_magic.html file. Editing this file is not recommended.
Default MIME types file. This file sets the default list of mappings from filename extensions to content types, changing this file is not recommended. Use the AddType directive instead.
Contents under this directory are delivered as-is from the apache distribution and these files are not meant to be read by the server.
Contains sample .conf files. These are not included in the main configuration file. To use the sample file, copy the file to conf.d directory and modify as per the need.
Contains the 32-bit httpd (Pre-fork MPM) and httpd.worker (Worker MPM) executables as well as other utility programs.
Contains the 64-bit httpd (Prefork MPM) and httpd.worker (Worker MPM) executables as well as other utility programs.
Contains the Apache manual in HTML format.
Contains the Apache header files, which are needed for building various optional server extensions with apxs(8).
Contains 32-bit loadable modules (DSOs) supplied with the server.
Contains 64-bit loadable modules (DSOs) supplied with the server.
Contains man pages for the server, utility programs, and mod_perl.
Add this directory to your MANPATH to read the Apache man pages.
Contains the 32-bit apache2 core libraries.
Contains the 64-bit Apache 2 core libraries.
Contains the 32-bit modules and library files used by the mod_perl extension to Apache.
Default location for the CGI scripts.
This can be changed by altering the httpd.conf file and restarting the server.
Default document root.
This can be changed by altering the httpd.conf file and restarting the server.
Icons used by the server.
This should not be changed.
Place holder for 32-bit user apache modules.
Any 32-bit modules which are added using apxs(8) are copied into this directory.
Place holder for 64-bit user Apache 2 modules.
Any 64-bit modules which are added using apxs(8) are copied into this directory.
Contains server log files.
The formats, names, and locations of the files in this directory can be altered by various configuration directives in the httpd.conf file.
Directory used to cache pages if the caching feature of mod_proxy is enabled in the httpd.conf file.
The location of the cache can also be changed by changing the proxy configuration in the httpd.conf file.
Modules mod_fcgid, mod_jk,mod_security, and mod_dtrace are integrated to Apache 2. For more information about these modules, see http://fastcgi.coremail.cn/doc.htm, http://tomcat.apache.org/connectors-doc/generic_howto/quick.html, http://www.modsecurity.org/documentation/index.html, and http://prefetch.net/projects/apache_modtrace/mod_dtrace.c