def _is_rewrite_engine_on(self, vhost):
        rewrite_engine_path = self.parser.find_dir("RewriteEngine", "on",
                                                   start=vhost.path)
        if rewrite_engine_path:
            return self.parser.get_arg(rewrite_engine_path[0])
        return False
Checks if a RewriteEngine directive is on
dataset/ETHPy150Open letsencrypt/letsencrypt/certbot-apache/certbot_apache/configurator.py/ApacheConfigurator._is_rewrite_engine_on