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

2018-03-13 Thread avpdnepr
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 @/roo

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

2018-03-13 Thread avpdnepr
root@instance-1:~# cat /root/unit_json/start.json { "listeners": { "*:8300": { "application": "blogs" }, "*:8301": { "application": "cart" } }, "applications": { "blogs": { "type": "php", "processes

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

2018-03-13 Thread avpdnepr
root@instance-1:~# ls -l /var/www/app total 0 root@instance-1:~# Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279020,279027#msg-279027 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

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

2018-03-13 Thread avpdnepr
{ "listeners": { "*:8300": { "application": "blogs" }, "*:8301": { "application": "cart" } }, "applications": { "blogs": { "type": "php", "processes": 20, "user": "www-php",

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

2018-03-13 Thread avpdnepr
Valentin V. Bartenev Wrote: --- > On Tuesday 13 March 2018 11:46:48 avpdnepr wrote: > > 2018/03/13 12:10:37 [info] 2220#2220 "example_python" application > started > > 2018/03/13 12:10:37 [emerg] 2220#2220 Python fai

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

2018-03-13 Thread avpdnepr
2018/03/13 12:10:37 [info] 2220#2220 "example_python" application started 2018/03/13 12:10:37 [emerg] 2220#2220 Python failed to import module "wsgi" 2018/03/13 12:10:37 [notice] 1625#1625 process 2220 exited with code 1 2018/03/13 12:10:37 [warn] 1632#1632 failed to start application "example_pyth