Query apache config file path

  • run apachectl -V | grep SERVER_CONFIG_FILE to get the config file relative path
  • run apachectl -V | grep HTTPD_ROOT to get the httpd bin path

Conflict between httpd.conf and httpd-vhosts.conf

Including httpd-vhosts.conf in httpd.conf may conflict with whatever DocumentRoot specified, it's best to comment include script at first.

1 DocumentRoot "/var/www"
2 
3 # Virtual hosts
4 #Include conf/extra/httpd-vhosts.conf