1.1 --- a/docs/CGI/NOTES.txt Wed Aug 24 21:59:01 2005 +0000
1.2 +++ b/docs/CGI/NOTES.txt Wed Aug 24 23:41:51 2005 +0000
1.3 @@ -44,13 +44,16 @@
1.4 Configuring AOLserver
1.5 =====================
1.6
1.7 +NOTE: AOLserver does not seem to handle "URL encoded" character values
1.8 +NOTE: properly when such values appear in the path before the query string.
1.9 +
1.10 To configure applications for AOLserver, edit the server's configuration file
1.11 (eg. config.tcl) so that definitions similar to the following are present in
1.12 the "CGI interface" section:
1.13
1.14 ns_section "ns/server/${servername}/module/nscgi"
1.15 -ns_param map "GET /cgi /home/paulb/Software/Python/WebStack/examples/CGI" ;# CGI script file dir (GET).
1.16 -ns_param map "POST /cgi /home/paulb/Software/Python/WebStack/examples/CGI" ;# CGI script file dir (POST).
1.17 +ns_param map "GET /cgi/simple /home/paulb/Software/Python/WebStack/examples/CGI/SimpleHandler.py" ;# CGI script file (GET).
1.18 +ns_param map "POST /cgi/simple /home/paulb/Software/Python/WebStack/examples/CGI/SimpleHandler.py" ;# CGI script file (POST).
1.19 ns_param interps CGIinterps
1.20
1.21 ns_section "ns/interps/CGIinterps"
1.22 @@ -69,14 +72,14 @@
1.23
1.24 In other words, it must not be commented out with a leading # character.
1.25
1.26 -With the above configuration, the example applications should be visitable
1.27 -with URLs resembling these:
1.28 +With the above configuration, the example application should be visitable with
1.29 +a URL resembling one of these:
1.30
1.31 -http://localhost/cgi/CookieHandler.py
1.32 -http://localhost/cgi/SimpleHandler.py
1.33 +http://192.168.1.100/cgi/simple
1.34 +http://192.168.1.100:8000/cgi/simple
1.35
1.36 -More advanced configuration of AOLserver to expose "cleaner" names for
1.37 -application resources is not covered here.
1.38 +(Where 192.168.1.100 is the address that AOLserver is listening on - it does
1.39 +not seem to enjoy listening on localhost.)
1.40
1.41 Configuring lighttpd
1.42 ====================