The configuration for
Apache
Linux Server is achieved through the placement of directives in plain
text files, just as it is done with many other Linux-based programs.
The files in the case of Apache Linux Server are known as httpd.conf,
srm.conf, and access.conf.
There are three separate configuration files for a reason. One
alternative is to use httpd.conf as the server-wide configuration,
access.conf to set access control for the server, and srm.conf to
control naming and resources. You can tell Apache Linux Server to look
only at it for its configuration by placing the options AccessConfig
/dev/null and ResourceConfig /dev/null in httpd.conf. You can also name
directories httpd.conf, srm.conf, and access.conf, respectively. The
Apache Linux Server automatically sort all subdirectories and files
located there into the configuration files named earlier.
The root directory of the Apache Linux Server differs according to
installation options, but the files are usually located in the /conf
subdirectory. If Apache Linux Server is installed with all the
defaults, then the configuration files would be located in
/usr/local/apache/conf.
Apache Linux Server can load its configuration from a user-defined file
at run time due to the –f command-line option. The configuration files
are found in /etc/apache in the latest version of Debian. The
configuration files are located under /etc/httpd/conf, if you are using
Red Hat. You know that structure of directory and location of files
might change if you have run more than one version of Linux before. If
you have having doubts, then running locate httpd or locate apache with
a database of files which has been updated can be useful in getting the
exact location.
When it comes to configuring the Apache Linux Server, the directives
are entered into the configuration files one in each line and are
case-sensitive. You will be given a line number if Apache Linux Server
sees a problem with any particular command. There are many
configuration options of the Apache Web Server, just as there is with
any program which has many features. The main configuration files are
stored in plain text files, and the main configuration files are
accessible easily through the text editor you choose.