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

avpdnepr nginx-forum at forum.nginx.org
Tue Mar 13 17:25:47 UTC 2018


root at instance-1:~# cat /root/unit_json/start.json
{
    "listeners": {
        "*:8300": {
            "application": "blogs"
        },
        "*:8301": {
            "application": "cart"
        }
    },

    "applications": {
        "blogs": {
            "type": "php",
            "processes": 20,
            "user": "www-php",
            "group": "www-php",
            "root": "/var/www",
            "index": "index.php"
        },
        "cart": {
            "type": "python",
            "processes": 10,
            "module": "wsgi",
            "user": "root",
            "group": "root",
            "path": "/var/www/app"
        }
    }
}
root at instance-1:~#

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279020,279032#msg-279032



More information about the nginx mailing list