1.1 --- a/docs/CGI/NOTES.txt Mon Jul 18 21:11:10 2005 +0000
1.2 +++ b/docs/CGI/NOTES.txt Mon Jul 18 21:11:27 2005 +0000
1.3 @@ -45,8 +45,8 @@
1.4 =====================
1.5
1.6 To configure applications for AOLserver, edit the server's configuration file
1.7 -(eg. config.tcl) so that the following definitions are present in the "CGI
1.8 -interface" section:
1.9 +(eg. config.tcl) so that definitions similar to the following are present in
1.10 +the "CGI interface" section:
1.11
1.12 ns_section "ns/server/${servername}/module/nscgi"
1.13 ns_param map "GET /cgi /home/paulb/Software/Python/WebStack/examples/CGI" ;# CGI script file dir (GET).
1.14 @@ -78,6 +78,29 @@
1.15 More advanced configuration of AOLserver to expose "cleaner" names for
1.16 application resources is not covered here.
1.17
1.18 +Configuring lighttpd
1.19 +====================
1.20 +
1.21 +To configure applications for lighttpd, edit the server's configuration file
1.22 +(eg. lighttpd.conf) so that definitions similar to the following are present:
1.23 +
1.24 +alias.url = ( "/cgi/" => "/home/paulb/Software/Python/WebStack/examples/CGI/" )
1.25 +cgi.assign = ( ".py" => "" )
1.26 +
1.27 +The latter line assumes that the permissions of the handler programs (eg.
1.28 +SimpleHandler.py) are set correctly and that the first line of the programs
1.29 +declares the Python runtime's whereabouts; for example:
1.30 +
1.31 +#!/usr/bin/env python
1.32 +
1.33 +To associate a specific Python runtime executable with the .py suffix, use a
1.34 +line like the following instead:
1.35 +
1.36 +cgi.assign = ( ".py" => "/usr/bin/python" )
1.37 +
1.38 +More advanced configuration of lighttpd to expose "cleaner" names for
1.39 +application resources is not covered here.
1.40 +
1.41 Session Storage with CGI
1.42 ========================
1.43