Welcome! Log In Create A New Profile

Advanced

Re: I can not configure the python module through the official Nginx Unit documentation?

March 13, 2018 01:25PM
root@instance-1:~# cat /var/www/app/index.py
import sys

def application(environ, start_response):
body = sys.version.encode("utf-8")
status = "200 OK"
headers = [('Content-type','text/plain')]
start_response(status, headers)
return body


root@instance-1:~# curl -X PUT -d @/root/unit_json/start.json --unix-socket /var/run/control.unit.sock http://localhost/
{
"error": "Failed to apply new configuration."
}
root@instance-1:~#
Subject Author Posted

I can not configure the python module through the official Nginx Unit documentation?

avpdnepr March 13, 2018 11:46AM

Re: I can not configure the python module through the official Nginx Unit documentation?

Valentin V. Bartenev March 13, 2018 12:00PM

Re: I can not configure the python module through the official Nginx Unit documentation?

avpdnepr March 13, 2018 12:27PM

Re: I can not configure the python module through the official Nginx Unit documentation?

avpdnepr March 13, 2018 12:28PM

Re: I can not configure the python module through the official Nginx Unit documentation?

Valentin V. Bartenev March 13, 2018 12:40PM

Re: I can not configure the python module through the official Nginx Unit documentation?

avpdnepr March 13, 2018 12:43PM

Re: I can not configure the python module through the official Nginx Unit documentation?

Valentin V. Bartenev March 13, 2018 12:50PM

Re: I can not configure the python module through the official Nginx Unit documentation?

avpdnepr March 13, 2018 01:25PM

Re: I can not configure the python module through the official Nginx Unit documentation?

avpdnepr March 13, 2018 01:25PM

Re: I can not configure the python module through the official Nginx Unit documentation?

Valentin V. Bartenev March 13, 2018 01:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready