The default modifier for `http` is 0, that is, HTTP is mapped to Python/WSGI apps (despite whatever plugins are loaded).
Use `--http-modifier1` to set the modifier for http. CGI's modifier1 value seems to be 9 and Lua's seems to be 6. You can also use `--remap-modifier` to remap modifier1 numbers, if that's better suited for your use. Best, Aarni > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Gilles > Sent: 25. helmikuuta 2014 17:38 > To: [email protected] > Subject: Re: [uWSGI] Newbie question about uwsgi/uWSGI + Lua > > On Fri, 7 Feb 2014 17:14:12 +0100, "Roberto De Ioris" > <[email protected]> wrote: > >cgi mode does not embed an interpreter. > > > >It basically spawns a new process for every request that closes itself > >at the end of the request. With the cgi-helper you tell the plugin > >which command to execute for running .lua script (and here you pass the > >path to luajit). > > Thanks for the tip. > > I compiled uwsgi-2.0 thusly: > ========== > UWSGICONFIG_LUAPC=luajit > make lua cgi > ========== > > Next, I launched this way just to display a plain HTML file: > > ./uwsgi --http 127.0.0.1:8080 --master --processes 4 --uid nobody --gid > nogroup --check-static /tmp/uwsgi-2.0/www => Can't connect from remote > host > > ./uwsgi --http 192.168.0.10:8080 --master --processes 4 --uid nobody --gid > nogroup --check-static /tmp/uwsgi-2.0/www > http://appliance:8080 => Console says "-- unavailable modifier > requested: 0 --" > > http://appliance:8080/index.html => Same error. > > There's so much information in the wiki that I don't know where to look. Was > uwsgi correctly compiled with support for Lua and CGI, and what is the right > way to launch uwsgi so that it supports HTTP like a regular web server? > > 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
