Configure HTTP server: lighttpd
Requirements
- 
lighttpd's mod_fastcgi module. On several binary releases, this module may be distributed as a separate package. 
- 
FCGI, FastCGI interface for Perl. 
Note
wwsympa.fcgiis wrapped in small setuid program written in C,wwsympa-wrapper.fcgi.Setuid wrapper was introduced on Sympa 5.4 in order to avoid to use the --- insecure and no longer maintained --- setuid perl mode.
General instruction
- 
If you have not added configuration for Sympa to lighttpd, add following excerpt (Note: replace $EXECCGIDIR,$CSSDIR,$PICTURESDIRand$STATICDIR):server.modules += ("mod_fastcgi") server.modules += ("mod_alias") # Line below is needed for 6.2.28 or later. alias.url += ( "/static-sympa/css/" => "$CSSDIR/" ) # Line below is needed for 6.2.28 or later. alias.url += ( "/static-sympa/pictures/" => "$PICTURESDIR/" ) alias.url += ( "/static-sympa/" => "$STATICDIR/" ) $HTTP["url"] =~ "^/sympa" { fastcgi.server = ( "/sympa" => (( "check-local" => "disable", "bin-path" => "$EXECCGIDIR/wwsympa-wrapper.fcgi", "socket" => "/var/run/lighttpd/sympa.sock", "max-procs" => 2, "idle-timeout" => 20, )) ) }In above, /static-sympa/css,/static-sympa/picturesand/static-sympaare the default values ofcss_url,pictures_urlandstatoc_content_url, respectively.Note - 
Some binary distributions ship configuration ready to edit: - On RPM, /etc/lighttpd/conf.d/sympa.conffile is prepared bysympa-lighttpdpackage. To add it to configuration, you might want to add a line at the bottom inlighttpd.conf:include conf.d/sympa.conf
 
- On RPM, 
 
- 
- 
Edit it as you prefer. 
- 
Create a directory /var/run/lighttpdthat is writable by lighttpd processes:# mkdir /var/run/lighttpd # chown lighttpd /var/run/lighttpd
- 
Restart lighttpd. 
