def get_vhost(path, url):
    """
    Creates apache vhost config text

    :param path:
    :param url:
    :return:
    """

    info = """
<VirtualHost *:80>
    DocumentRoot "%%path%%"
    ServerName "%%url%%"
    ServerAlias "%%url%%"
    <Directory "%%path%%">
        AllowOverride All
        Require all Granted
    </Directory>
</VirtualHost>
""".replace("%%url%%", url).replace("%%path%%", path)
    return info