Skip to Content.
Sympa Menu

Configure HTTP server: lighttpd

Requirements


Note:


General instruction

  1. If you have not added configuration for Sympa to lighttpd, add following excerpt (Note: replace $EXECCGIDIR and $STATICDIR):
    server.modules += ("mod_fastcgi")
    server.modules += ("mod_alias")
    
    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,
        ))
    )
    }
    

    Additionally with Sympa 6.2.28 or later, it is possible to set separate paths for style sheets and pictures.

    • If either or both of parameters css_path and css_url were changed from the default, you also need to add the following settings (Note: replace $css_url and $css_path below):
      alias.url += ( "$css_url/" => "$css_path/" )
      
    • If either or both of parameters pictures_path and pictures_url were changed from the default, you also need to add the following settings (Note: replace $pictures_url and $pictures_path below):
      alias.url += ( "$pictures_url/" => "$pictures_path/" )
      

    Note:

    • Some binary distributions ship configuration ready to edit:

      • On RPM, /etc/lighttpd/conf.d/sympa.conf file is prepared by sympa-lighttpd package. To add it to configuration, you might want to add a line at the bottom in lighttpd.conf:
        include conf.d/sympa.conf
        

  2. Edit it as you prefer.

  3. Create a directory /var/run/lighttpd that is writable by lighttpd processes:

    # mkdir /var/run/lighttpd
    # chown lighttpd /var/run/lighttpd
    
  4. Restart lighttpd.
Top of Page