Depending on distro and install :
/etc/httpd
or (more common)
/usr/local/httpd/
Never seen it anywhere else ;
find / -name httpd.conf
to find it for sure.
Actually if you compile Apache with the default Unix layout, it's
Code:
/usr/local/apache/conf/httpd.conf
, but most Linux pre-packaged installs place it at
Code:
/etc/httpd/httpd.conf
It's funny, but you actually answered your own question. Just type in "locate httpd.conf", and you will get a list of all locations your server has that file. This is assuming that your server is running the "locate" file indexer, which is pretty common on Unix/Linux installs these days. Generally "locate" is updated once a day by a cron job which runs the script "updatedb" to index all the files on your system. This allows for a very fast search on file locations, but it is necessarily accurate with up-t-the-minute information for files that have been changed during the day. If you get an error while running "locate", then try to su to root, and run "updatedb" yourself, which will build the initial index to search from.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.