Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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.
find / -name "httpd.conf"
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.