Support CentOS configuration layout in parser

This commit is contained in:
Joona Hoikkala 2015-12-06 22:46:28 +02:00
parent db9bf90cf9
commit 103454e4a3

View file

@ -546,8 +546,7 @@ class ApacheParser(object):
def _find_config_root(self):
"""Find the Apache Configuration Root file."""
location = ["apache2.conf", "httpd.conf"]
location = ["apache2.conf", "httpd.conf", "conf/httpd.conf"]
for name in location:
if os.path.isfile(os.path.join(self.root, name)):
return os.path.join(self.root, name)