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
root@instance-1:~# cat /root/unit_json/start.json
{
"listeners": {
"*:8300": {
"application": "blogs"
},
"*:8301": {
"application": "cart"
}
},
"applications": {
"blogs": {
"type": "php",
"processes
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
{
"listeners": {
"*:8300": {
"application": "blogs"
},
"*:8301": {
"application": "cart"
}
},
"applications": {
"blogs": {
"type": "php",
"processes": 20,
"user": "www-php",
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
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