[uWSGI] Newbie question about uwsgi/uWSGI + Lua

Gilles codecomplete at free.fr
Tue Apr 22 13:34:03 CEST 2014


Thanks much for the help.

Using the INI file below, uwsgi still...

1. doesn't support http://srv/ : I must type http://srv/index.html
explicitely

2. http://srv/cgi/test.lua says "Not found", while http://srv/test.lua
still shows the source code instead of running the script. 

***************************
[uwsgi]
workdir = /tmp/uwsgi-2.0.3
ipaddress = 192.168.0.10

http = %(ipaddress):8080
stats = %(ipaddress):9191
processes = 4
threads = 2
uid=nobody
gid=nogroup
static-index = index.html,index.htm
check-static=%(workdir)/www
;lua
http-modifier1=9
cgi=%(workdir)/cgi
cgi-allowed-ext=.lua
cgi-helper=.lua=lua
;run but don't send files ending in .lua
static-skip-ext = .lua
***************************

Also, when should I use http-modifier1? The doc only says: "You can
use the http-modifier1 option to pass a custom modifier1 value to
workers."
http://uwsgi-docs.readthedocs.org/en/latest/HTTP.html

Thank you.



More information about the uWSGI mailing list