Beispiel #1
0
def add_php_vhost(domain_name, document_root):
    utils.new_vhost(config_template="apache_php.conf",
        params={
            'domain': domain_name,
            'document_root': document_root
        },
        httpd="apache"
    )
Beispiel #2
0
def new_vhost(config_template, params):
    utils.new_vhost(config_template, params, httpd="nginx")