'Returns if vhost is a name based vhost
NameVirtualHost was deprecated in Apache 2.4 as all VirtualHosts are
now NameVirtualHosts. If version is earlier than 2.4, check if addr
has a NameVirtualHost directive in the Apache config
:param certbot_apache.obj.Addr target_addr: vhost address
:returns: Success
:rtype: bool'

def is_name_vhost(self, target_addr):

    return ((self.version >= (2, 4)) or self.parser.find_dir('NameVirtualHost', str(target_addr)))
