summaryrefslogtreecommitdiff
path: root/doc/cgi.txt
blob: 898d57f4308ae0b81a96f3798b82a056071d4162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
===
CGI
===

---------------
Module: mod_cgi
---------------

:Author: Jan Kneschke
:Date: $Date: 2005-03-28T08:30:05.699628Z $
:Revision: $Revision: 227 $

:abstract:
  The cgi module provides a CGI-conforming interface.
  
.. meta::
  :keywords: lighttpd, cgi
  
.. contents:: Table of Contents

Description
===========

CGI programs allow you to enhance the functionality of the server in a very
straight and simple way..

Options
=======

cgi.assign

  file-extensions that are handled by a CGI program

  e.g.: ::
  
    cgi.assign = ( ".pl"  => "/usr/bin/perl",
                   ".cgi" => "/usr/bin/perl" )

Examples
========

To setup a executable which doesn't need the help of a external program you
just don't specify a handler for the extension. ::

  cgi.assign = ( ".sh" => "" )
  
If the file has no extension keep in mind that lighttpd matches not the
extension itself but the right part of the URL: ::

  cgi.assign = ( "/testfile" => "" )