From 21cebbb5207347c099d7e09b81dbcab5ab3f6521 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Tue, 16 Jan 2018 22:28:58 -0800 Subject: [PATCH] filter by port in http01 --- certbot-apache/certbot_apache/http_01.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/certbot-apache/certbot_apache/http_01.py b/certbot-apache/certbot_apache/http_01.py index f3057a9b3..edcca8c9c 100644 --- a/certbot-apache/certbot_apache/http_01.py +++ b/certbot-apache/certbot_apache/http_01.py @@ -73,7 +73,9 @@ class ApacheHttp01(common.TLSSNI01): def _mod_config(self): moded_vhosts = set() for chall in self.achalls: - vh = self.configurator.find_best_http_vhost(chall.domain, filter_defaults=False) + vh = self.configurator.find_best_http_vhost( + chall.domain, filter_defaults=False, + port=str(self.configurator.config.http01_port)) if vh and vh not in moded_vhosts: self._set_up_include_directive(vh) moded_vhosts.add(vh)