Translation(s): English

Nginx Web Server / uWSGI


Nginx || Nginx/DirectoryStructure


/etc/nginx/default-server.d/pkg_<package_name>.conf

location ^~ /mypackage {
    root /usr/share/mypackage/app;
    location /mypackage {
        try_files $uri @uwsgi;
    }
    location @uwsgi;
        include uwsgi_params;
        uwsgi_pass unix:/run/uwsgi/sockets/mypackage.sock;
    }
}