From f40f372b88a2e475d8a9a7b6711a9210051bd457 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Thu, 12 Jul 2012 16:44:44 -0700 Subject: [PATCH] I really like this looking from /etc better because it's faster (I realize that on some systems httpd.conf is somewhere other than /etc!) --- client-webserver/sni_challenge.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client-webserver/sni_challenge.py b/client-webserver/sni_challenge.py index 567cad51b..a5c95b78d 100644 --- a/client-webserver/sni_challenge.py +++ b/client-webserver/sni_challenge.py @@ -21,8 +21,9 @@ def getChocCertFile(nonce): def findApacheConfigFile(): #This needs to be fixed to account for multiple httpd.conf files + # TODO: reliably and quickly find the httpd.conf anywher on the system? try: - p = subprocess.check_output(["sudo", "find", "/", "-name", "httpd.conf"], stderr=open("/dev/null")) + p = subprocess.check_output(["sudo", "find", "/etc", "-name", "httpd.conf"], stderr=open("/dev/null")) p = p[:len(p)-1] print "Apache Config: ", p return p