cgi.conf 953 B

123456789101112131415161718192021222324252627282930313233
  1. #######################################################################
  2. ##
  3. ## CGI modules
  4. ## ---------------
  5. ##
  6. ## http://www.lighttpd.net/documentation/cgi.html
  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. #######################################################################