You're mixing up command-line configuration format (--option=value) with the INI format (option=value), and uWSGI is trying to read "cgi" as an INI.
As your command line is growing, I'd heartily suggest making, say, myapp.ini with: [uwsgi] http=:8000 http-modifier1=9 uid=nobody gid=nogroup check-static=/tmp/uwsgi-2.0/www cgi=/tmp/uwsgi-2.0/cgi cgi-allowed-ext=.lua cgi-helper=.lua=lua and running uWSGI from here on out with ./uwsgi myapp.ini Best (again :) ), Aarni > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Gilles > Sent: 25. helmikuuta 2014 18:33 > To: [email protected] > Subject: [uWSGI] [CGI] Compiling + editing file > > Hello > > Now that "hello, world!" is working, I need to find how to run > CGI Lua scripts to handle HTML forms. > > 1. I compiled uwsgi this way: > ========= > UWSGICONFIG_LUAPC=luajit > make lua cgi > ========= > > But it fails running: > ========= > ./uwsgi --http :8000 --http-modifier1 9 --uid nobody --gid nogroup --check- > static /tmp/uwsgi-2.0/www cgi = /tmp/uwsgi-2.0/cgi cgi-allowed-ext = .lua > cgi-helper = .lua=lua > > unable to load configuration from cgi > ========= > > Was it badly compiled? How can I check how uwsgi is compiled (Didn't find > running "./uwsgi --help"? > > FWIW, /tmp/uwsgi-2.0/cgi/cgi.lua currently only contains this: > ========= > print("hello") > ========= > > 2. The wiki doesn't contain an example of what a CGI Lua script looks like. > Would someone have a basic example that shows how to read input > parameters from an HTML form? > http://uwsgi-docs.readthedocs.org/en/latest/CGI.html > > Thank you. > > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
