# HG changeset patch # User paulb # Date 1121721087 0 # Node ID 36a5c6bc9dfaed7cf2962822c99950cb05f9128d # Parent 41069a3b33e3f9d00474e55f59b9f78f0b777922 [project @ 2005-07-18 21:11:27 by paulb] Added notes about lighttpd to the CGI documentation. diff -r 41069a3b33e3 -r 36a5c6bc9dfa docs/CGI/NOTES.txt --- a/docs/CGI/NOTES.txt Mon Jul 18 21:11:10 2005 +0000 +++ b/docs/CGI/NOTES.txt Mon Jul 18 21:11:27 2005 +0000 @@ -45,8 +45,8 @@ ===================== To configure applications for AOLserver, edit the server's configuration file -(eg. config.tcl) so that the following definitions are present in the "CGI -interface" section: +(eg. config.tcl) so that definitions similar to the following are present in +the "CGI interface" section: ns_section "ns/server/${servername}/module/nscgi" ns_param map "GET /cgi /home/paulb/Software/Python/WebStack/examples/CGI" ;# CGI script file dir (GET). @@ -78,6 +78,29 @@ More advanced configuration of AOLserver to expose "cleaner" names for application resources is not covered here. +Configuring lighttpd +==================== + +To configure applications for lighttpd, edit the server's configuration file +(eg. lighttpd.conf) so that definitions similar to the following are present: + +alias.url = ( "/cgi/" => "/home/paulb/Software/Python/WebStack/examples/CGI/" ) +cgi.assign = ( ".py" => "" ) + +The latter line assumes that the permissions of the handler programs (eg. +SimpleHandler.py) are set correctly and that the first line of the programs +declares the Python runtime's whereabouts; for example: + +#!/usr/bin/env python + +To associate a specific Python runtime executable with the .py suffix, use a +line like the following instead: + +cgi.assign = ( ".py" => "/usr/bin/python" ) + +More advanced configuration of lighttpd to expose "cleaner" names for +application resources is not covered here. + Session Storage with CGI ========================