def enable_site(site_name):
    """
    Enable an Apache site.

    This creates a symbolic link from ``/etc/apache2/sites-available/``
    into ``/etc/apache2/sites-enabled/``.

    This does not cause Apache to reload its configuration.

    ::

        import fabtools

        fabtools.apache.enable_site('default')
        fabtools.service.reload('apache2')

    .. seealso:: :py:func:`fabtools.require.apache.site_enabled`
    """
    if not is_site_enabled(site_name):
        run_as_root('a2ensite %s' % _site_config_filename(site_name))
dataset/ETHPy150Open ronnix/fabtools/fabtools/apache.py/enable_site/original