def test_conf():
    if test:
        try:
            output = subprocess.check_output(('/usr/sbin/nginx -t -c ' + nginx_conf), stderr=subprocess.STDOUT, shell=True)
            print(output.decode())
        except Exception as e:
            print(e)
def test_conf():
    if test:
        try:
            output = subprocess.check_output(('/usr/sbin/nginx -t -c ' + nginx_conf), stderr=subprocess.STDOUT, shell=True)
            print(output.decode())
        except Exception as e:
            print(e)