Forum Moderators: phranque
/opt/apache_build/mod_perl-1.29/t/conf/httpd.conf
/opt/apache_build/mod_perl-1.29/t/httpd.conf
/opt/apache_build/mod_perl-1.29/t/httpd_conf/conf/httpd.conf
/srvrs/apache-1.3.31-ssl/conf/httpd.conf
/usr/local/stuaff-apache/conf/httpd.conf
/etc/httpd/conf/httpd.conf
how do i know which one is the main, functioning one? I can probably rule out the ones under perl, and probably the one in the usr/local/ directory, but maybe i can't. That would leave me with 2 files to guess from. What is the sure-fire way of finding out which httpd.conf file is the real operating deal?
------------------------------------------------
here's another example. another linux/apache box
find the httpd.conf in 2 places :
/home/webuser/local/apache/conf/httpd.conf
/etc/httpd/conf/httpd.conf
which is the real deal and what is the other one for?
thank you, b
apachectl configtest. If apache was expecting to find the config file you renamed, you'll get an error message (btw this won't affect the running server). Once you've determined the main file, you'll need to check if any further files are included (with the Include directive).
Just had another, possibly safer idea: look in the various httpd.conf files to see where the server is writing its logs. If the configuration is different, you can look at the log files to see which ones are active. (If they both specify e.g. /var/log/httpd/access_log then that wouldn't be any help).
You could also check the httpd.conf files for which domains they are configured for, that might help determin which file is the "right" one.