lighttpd newbie here...
We're trying to set up lighttpd to host a local django app, kiosk-style. We intend to use wsgi for this, but we're having trouble figuring out the syntax for lighttpd's config file -- examples pulled straight from lighttpd docs are throwing syntax errors!
It seems there are two syntaxes in play:
- One has semicolons, and function calls seem to work. Examples of this style can be found here and here. Keywords like
module_load
anddocroot
seem to be valid. The following lines, placed at the top of /etc/lighttpd/lighttpd.conf, crash on startup with a syntax error:
setup { module_load ( "mod_expire", "mod_fastcgi", "mod_vhost", "mod_lua" ); lua.plugin "core.lua"; }
or
core.wsgi ( "", {fastcgi: "/var/run/lighttpd/kiosk.sock"} )
- The other style seems more straightforward, and lines up with the official Configuration File Syntax, as seen here. There are no line-ending semicolons, and function calls (other than assignment) do not seem to work. This format reads more like the config-file-with-conditionals format described in the documentation, and the keyword equivalent for
server.document-root
("docroot
") does not seem to work here.
What is going on? Why are there two seperate configuration syntaxes? One style seems to be lua (which I'm not very familiar with...) How are they used? When is it best to use which?
I've tried Googling this, but it is difficult to search for. Lots of generic or app-specific results, with, seemingly none naming the paths of the files they show.