cgi.txt 942 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. ===
  2. CGI
  3. ===
  4. ---------------
  5. Module: mod_cgi
  6. ---------------
  7. :Author: Jan Kneschke
  8. :Date: $Date: 2004/11/03 22:26:05 $
  9. :Revision: $Revision: 1.2 $
  10. :abstract:
  11. The cgi module provides a CGI-conforming interface.
  12. .. meta::
  13. :keywords: lighttpd, cgi
  14. .. contents:: Table of Contents
  15. Description
  16. ===========
  17. CGI programs allow you to enhance the functionality of the server in a very
  18. straight and simple way..
  19. Options
  20. =======
  21. cgi.assign
  22. file-extensions that are handled by a CGI program
  23. e.g.: ::
  24. cgi.assign = ( ".pl" => "/usr/bin/perl",
  25. ".cgi" => "/usr/bin/perl" )
  26. Examples
  27. ========
  28. To setup a executable which doesn't need the help of a external program you
  29. just don't specify a handler for the extension. ::
  30. cgi.assign = ( ".sh" => "" )
  31. If the file has no extension keep in mind that lighttpd matches not the
  32. extension itself but the right part of the URL: ::
  33. cgi.assign = ( "/testfile" => "" )