How to find out which httpd.conf apache is using at runtime

I've always struggled to find this: How can you ask apache which httpd.conf file it used to load up?

It becomes difficult when you have a number of instances of apache running, or if you haven't looked at the machine for a long time, and there are a lot of httpd.conf file on disk!

Thanks a lot :)


Solution 1:

apache2ctl -V | grep SERVER_CONFIG_FILE

Solution 2:

/usr/sbin/apache2 -V provides this info and a little more :)