mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 00:32:12 -04:00
fix apache 2.2
This commit is contained in:
parent
eb7426c824
commit
0802ade04e
1 changed files with 5 additions and 2 deletions
|
|
@ -557,8 +557,11 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||
|
||||
# search for NameVirtualHost directive for ip_addr
|
||||
# note ip_addr can be FQDN although Apache does not recommend it
|
||||
return (self.version >= (2, 4) or
|
||||
self.parser.find_dir("NameVirtualHost", str(target_addr)))
|
||||
if (self.version >= (2,4)):
|
||||
return True
|
||||
else:
|
||||
self.save("don't lose config changes", True)
|
||||
return (self.parser.find_dir("NameVirtualHost", str(target_addr)))
|
||||
|
||||
def add_name_vhost(self, addr):
|
||||
"""Adds NameVirtualHost directive for given address.
|
||||
|
|
|
|||
Loading…
Reference in a new issue