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)