How can I reliably find the location of httpd.conf?
I am looking for a solution, or if necessary a combination of things that will find the location of httpd.conf quickly and reliably on as many Operating Systems as possible.
Thanks!
For me,
apachectl -V
works on both OSX and FreeBSD.
If anybody has a better answer or a continuation of this answer for other operating systems, feel free to share.
find / -name "httpd.conf"? orapache2 -Vthat gives something likeSERVER_CONFIG_FILE="/etc/apache2/apache2.conf"?apachectl -Vis working for me on both OSX and FreeBSD.