File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / doc / outdated / cgi.txt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:48 2013 UTC (10 years, 8 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_41p8, v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

===
CGI
===

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

:Author: Jan Kneschke
:Date: $Date: 2013/10/14 10:32:48 $
:Revision: $Revision: 1.1.1.1 $

: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" => "" )

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>