The Apache server settings file is located in the/usr/local/apache/conf/directory and traditionally uses three profiles httpd.conf, access.conf, and srm.conf to configure the Apache server's behavior. HTTPD.CONF provides the most basic server configuration, a technical description of how the daemon httpd run, srm.conf is the server's resource mapping file, tells the server the MIME type of various files, and how to support the files; ACCESS.CONF is used to configure access rights for the server, to control access restrictions for different users and computers, and these three profiles control all aspects of the server, so the three files need to be set up to run the server properly.
In addition to these three settings files, Apache uses the Mime.types file to identify the MIME types for different files, and magic files to set some special identities for different MIME type files so that the Apache server cannot determine the MIME type of the file from the document suffix. The MIME type of the document can be judged by these special tags in the contents of the file.
[Iaspec@www conf]$ pwd
/usr/local/apache/conf
[Iaspec@www conf]$ ls
access.conf Httpd.conf.OLD Magic.default srm.conf
Access.conf.default Httpd.conf.SAVE mime.types Srm.conf.default
Httpd.conf Magic Mime.types.default
The new version of Apache puts all of the configuration parameters in the original httpd.conf, srm.conf, and access.conf in one configuration file In httpd.conf, three profiles are used only for reasons that are compatible with previous versions (from NCSA-HTTPD in the way that these three settings files are used). There are no specific settings in the access.conf and srm.conf files provided.
Because in the new version of Apache, all of the settings are placed in the httpd.conf, so you just need to adjust the settings in this file. This article, based on the httpd.conf of Redhat 7.2, explains the various setup options for the Apache server and, of course, its configuration method can be extended to almost all UNIX systems.