lighttpdrecipe

Lighttpd config file creation for Buildout
Download

lighttpdrecipe Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Vasily Sulatskov
  • Publisher web site:
  • http://github.com/redvasily/

lighttpdrecipe Tags


lighttpdrecipe Description

Lighttpd config file creation for Buildout lighttpdrecipe is a Python library that offers a buildout recipe for generating lighttpd configuration files.Status:This recipe is an alpha state, so don't expect any stability. It can be used but better hardcode the requirement for particular version that works for you.Usage:Example buildout.cfg:: develop = lighttpdrecipe buildoutjinja parts = lighty-conf project=lighttpdrecipetest recipe = lighttpdrecipe host = (a|b).example.com redirect_from = www.example.com redirect_to = a.example.comThis recipe will generate a following config file:: $HTTP =~ "((a|b).example.com)" { server.document-root = "/home/vasily/projects/lighttpd_recipe/src" server.follow-symlink = "enable" dir-listing.activate = "enable" fastcgi.server = ( "/fcgi" => ( ( "bin-path" => "/home/vasily/projects/lighttpd_recipe/src/bin/django.fcgi", "socket" => "/tmp/a.example.com.socket", "check-local" => "disable", "max-procs" => 2, "min-procs" => 2, ) ) ) url.rewrite-once = ( "^(/media/.*)$" => "/$1", "^(/.*)$" => "/fcgi$1", ) $HTTP =~ "^/media/" { expire.url = ( "" => "access 1 seconds" ) } } $HTTP == "www.example.com" { url.redirect = ( "^(/.*)" => "http://a.example.com$1" ) } Requirements: · Python


lighttpdrecipe Related Software