cgi.conf 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #######################################################################
  2. ##
  3. ## CGI modules
  4. ## ---------------
  5. ##
  6. ## See https://redmine.lighttpd.net/projects/lighttpd/wiki/docs_modcgi
  7. ##
  8. server.modules += ( "mod_cgi" )
  9. ##
  10. ## Plain old CGI handling
  11. ##
  12. ## For PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini.
  13. ##
  14. cgi.assign = ( ".pl" => "/usr/bin/perl",
  15. ".cgi" => "/usr/bin/perl",
  16. ".rb" => "/usr/bin/ruby",
  17. ".erb" => "/usr/bin/eruby",
  18. ".py" => "/usr/bin/python" )
  19. ##
  20. ## to get the old cgi-bin behavior of apache
  21. ##
  22. ## Note: make sure that mod_alias is loaded if you uncomment the
  23. ## next line. (see modules.conf)
  24. ##
  25. #alias.url += ( "/cgi-bin" => server_root + "/cgi-bin" )
  26. #$HTTP["url"] =~ "^/cgi-bin" {
  27. # cgi.assign = ( "" => "" )
  28. #}
  29. ##
  30. ## require execute permission (+x) on files for CGI scripts
  31. ## default: disable
  32. ##
  33. #cgi.execute-x-only = "enable"
  34. ##
  35. ## process X-Sendfile (if present) from CGI response
  36. ## https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI#X-Sendfile
  37. ## default: disable
  38. ##
  39. #cgi.x-sendfile = "enable"
  40. #cgi.x-sendfile-docroot = ( "/srv/www/html", "/srv/www/static" )
  41. ##
  42. ## Local Redirect Response optimization
  43. ## https://www.ietf.org/rfc/rfc3875 6.2.2 Local Redirect Response optimization
  44. ## default: disable
  45. ##
  46. #cgi.local-redir = "enable"
  47. ##
  48. ## permit Upgrade, e.g. Upgrade: websocket
  49. ## default: disable
  50. ##
  51. #cgi.upgrade = "enable"
  52. ##
  53. #######################################################################