Apache - Configuration (httpd.conf)


All the Apache configuration are in one directory, the conf directory. with one main entry point known as the httpd.conf file.

From this file, all other configuration files are included. It means that you could even have only one configuration file.

With this configuration file, you can also start several instance of Apache if you give it as option.


Define SRVROOT "c:/Apache24"

ServerRoot "${SRVROOT}"

Listen 80

#LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so



The location of the configuration directory will differ depending on:

  • how Apache was compiled
  • how Apache was started (You can give the configuration as option)

For instance:

  • /etc/apache2/apache2.conf
  • /usr/local/apache2/conf/httpd.conf
  • C:\Apache24\conf\httpd.conf


The apache configuration file is a well specified format that may also be used elsewhere as configuration file.

The syntax is defined in the documentation.

Powered by ComboStrap