def _copy_create_ssl_vhost_skeleton(self, avail_fp, ssl_fp):
        """Copies over existing Vhost with IfModule mod_ssl.c> skeleton.

        :param str avail_fp: Pointer to the original available non-ssl vhost
        :param str ssl_fp: Full path where the new ssl_vhost will reside.

        A new file is created on the filesystem.

        """
        # First register the creation so that it is properly removed if
        # configuration is rolled back
        self.reverter.register_file_creation(False, ssl_fp)
        sift = False

        try:
            with open(avail_fp, "r") as orig_file:
                with open(ssl_fp, "w") as new_file:
                    new_file.write("<IfModule mod_ssl.c>\n")
                    for line in orig_file:
                        if self._sift_line(line):
                            if not sift:
                                new_file.write(
                                    "# Some rewrite rules in this file were "
                                    "were disabled on your HTTPS site,\n"
                                    "# because they have the potential to "
                                    "create redirection loops.\n")
                                sift = True
                            new_file.write("# " + line)
                        else:
                            new_file.write(line)
                    new_file.write("</IfModule>\n")
        except __HOLE__:
            logger.fatal("Error writing/reading to file in make_vhost_ssl")
            raise errors.PluginError("Unable to write/read in make_vhost_ssl")

        if sift:
            reporter = zope.component.getUtility(interfaces.IReporter)
            reporter.add_message(
                "Some rewrite rules copied from {0} were disabled in the "
                "vhost for your HTTPS site located at {1} because they have "
                "the potential to create redirection loops.".format(avail_fp,
                                                                    ssl_fp),
                reporter.MEDIUM_PRIORITY)
dataset/ETHPy150Open letsencrypt/letsencrypt/certbot-apache/certbot_apache/configurator.py/ApacheConfigurator._copy_create_ssl_vhost_skeleton