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

apache-2.2httpd.conf

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 🙂

Best Answer

apache2ctl -V | grep SERVER_CONFIG_FILE