From 28cbd6e7d385ce0bd4c28e49e422d6eaf51f9cdb Mon Sep 17 00:00:00 2001 From: Joona Hoikkala Date: Fri, 24 Feb 2017 06:28:36 +0200 Subject: [PATCH] Fix for case sensitivity when looking for vhosts (#4193) --- certbot-apache/certbot_apache/configurator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot-apache/certbot_apache/configurator.py b/certbot-apache/certbot_apache/configurator.py index a956341eb..5639dae83 100644 --- a/certbot-apache/certbot_apache/configurator.py +++ b/certbot-apache/certbot_apache/configurator.py @@ -580,7 +580,7 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator): ("/files%s//*[label()=~regexp('%s')]" % (vhost_path, parser.case_i("VirtualHost")))) paths = [path for path in paths if - os.path.basename(path) == "VirtualHost"] + os.path.basename(path.lower()) == "virtualhost"] for path in paths: new_vhost = self._create_vhost(path) if not new_vhost: