How to Find the Apache Web Server Configuration File

For Apache 1.x, issue the command httpd -V

For Apache 2.x, issue the command httpd2 -V

Look for the variable HTTPD_ROOT and combine that with SERVER_CONFIG_FILE. For example, if HTTPD_ROOT is "/etc/httpd/2.0" and SERVER_CONFIG_FILE is "conf/httpd2.conf" then your configuration file should be located at /etc/httpd/2.0/conf/httpd2.conf. Double check that the file exists.