Feature #475
closedpossibility to append values to empty lists
Description
i want to make modularized config for lighttpd, so that each module has own package. but lighttpd has limitation of not allowing to append to empty server.modules
# lighttpd -f l.conf Undefined config variable: server.modules Undefined config variable in conditional 0 global: server.modules 2006-01-17 02:44:49: (configfile.c.803) source: l.conf line: 4 pos: 1 parser failed somehow near here: (EOL)
config used:
server.modules += ( "mod_access" )
-- Elan Ruusamäe <glen
Updated by moo over 18 years ago
- Status changed from Assigned to Fixed
- Resolution set to fixed
fixed in r1062
Updated by glen over 18 years ago
- Status changed from Fixed to Need Feedback
- Resolution deleted (
fixed)
i tested the patch, and it doesn't seem to work
# lighttpd -f l.conf Undefined config variable: server.modules 2006-06-18 00:49:08: (configfile.c.805) source: l.conf line: 4 pos: 1 parser failed somehow near here: (EOL) # cat l.conf server.modules += ( "mod_indexfile", )
Updated by moo over 18 years ago
- Status changed from Need Feedback to Fixed
- Resolution set to worksforme
i'm sure it works for me, with your conf, i get only:
2006-06-18 09:29:59: (src/configfile.c.1186) a default document-root has to be set 2006-06-18 09:29:59: (src/server.c.564) setting default values failed
i add something:
server.modules += ( "mod_indexfile", ) server.document-root = "/tmp" server.port = 8080
and it just works:
./build/lighttpd -m build -Df a.conf 2006-06-18 09:31:40: (src/log.c.75) server started 2006-06-18 09:31:41: (src/server.c.1255) [note] graceful shutdown started 2006-06-18 09:31:41: (src/log.c.135) server stopped
please make sure you rebuild correctly after patching (make clean), make sure it's regenerating the cnofig parser, or try the lastest branches/lighttpd-merge-1.4.x
Updated by Anonymous over 18 years ago
ok! works with svn and 1.4.12-20060724-0947 pre-release .
-- Elan Ruusamäe <glen
Updated by Anonymous about 18 years ago
- Status changed from Fixed to Need Feedback
- Resolution deleted (
worksforme)
could the changes be merged to PRE-RELEASE?
as it stopped working with lighttpd-1.4.12-20060901-1232.tar.gz, but it worked with SVN snapshot (see comment nr 5)
# service lighttpd restart Undefined config variable: server.modules Undefined config variable in conditional 0 global: server.modules 2006-09-05 00:15:58: (configfile.c.805) source: /bin/cat conf.d/*.conf line: 17 pos: 15 parser failed somehow near here: (EOL) 2006-09-05 00:15:58: (configfile.c.805) source: /etc/lighttpd/lighttpd.conf line: 8 pos: 21 parser failed somehow near here: (EOL) [ FAIL ] #
-- Elan Ruusamäe <glen
Updated by Anonymous about 18 years ago
nevermind, using branch for 1.5.0 again.
-- Elan Ruusamäe <glen
Updated by moo over 17 years ago
- Status changed from Need Feedback to Fixed
- Resolution set to fixed
Also available in: Atom