So you’ve built a traditional web server on a red hat distribution of linux, and need to tweak the configuration some more? Finding the configuration file for this service has always been the bane of my life.
To find out you can actually query the service itself by getting it to show you the compile settings. The command to do this is:
The output of this should look something like the following:
Server version: Apache/2.4.6 (CentOS)
Server built: Jun 27 2018 13:48:59
Server's Module Magic Number: 20120211:24
Server loaded: APR 1.4.8, APR-UTIL 1.5.2
Compiled using: APR 1.4.8, APR-UTIL 1.5.2
Server MPM: prefork
forked: yes (variable process count)
Server compiled with….
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
As you can see from the above, the HTTPD root and server config file sections show exactly where it is. By default it is found at /etc/httpd/conf/httpd.conf.