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" )
def new_vhost(config_template, params): utils.new_vhost(config_template, params, httpd="nginx")