[uwsgi] strict = true ; adjust the needed plugins, path, name, user and socket for the application: plugin = manage-script-name = true chdir = /path/to/app mount = /mysite=app ; or use cgi = /mysite=/path/or/executable pidfile = /var/etc/mysite/master.pid enable-threads = true ; threads = 3 thunder-lock = true ; post-buffering = 8192 ; harakiri = 60 ; lazy-apps = true master = true ; idle = 600 ; processes = 3 ; cheaper-algo = spare ; cheaper = 1 ; cheaper-initial = 1 ; cheaper-step = 1 ; plugin = syslog ; disable-logging only affects req-logger: disable-logging = true log-format=%(method) %(uri) => return %(status) (%(rsize) bytes in %(msecs) ms) ; req-logger = syslog:mysite_req ; logger = mysite syslog:mysite_main ; if-env = UWSGI_EMPEROR_FD ; the regular expression leaves for successful de/activation only one line each: ; log-route = mysite ^(?!... Starting uWSGI |compiled with version: |os: Linux|nodename: |machine: |clock source: |pcre jit |detected number of CPU cores: |current working directory: |writing pidfile to |detected binary path: |chdir.. to |your processes number limit is |your memory page size is |detected max file descriptor number: |lock engine: |thunder lock: |uwsgi socket |setgid.. to |setuid.. to |Python version: |Python main interpreter initialized at |python threads support |your server socket listen backlog is limited to |your mercy for graceful operations on workers is |mapped |... Operational MODE: |... uWSGI is running in multiple interpreter mode ...|spawned uWSGI worker |mounting |WSGI app |announcing my loyalty to the Emperor...|workers have been inactive for more than |SIGINT/SIGQUIT received...killing workers...|worker |goodbye to uWSGI.) ; end-if = if-not-env = UWSGI_EMPEROR_FD ; log-route = mysite .* vacuum = true socket = /var/run/mysite.socket ; cheap = true end-if = chmod-socket = 660 chown-socket = user:nogroup uid = user gid = nogroup