# HG changeset patch # User paulb # Date 1124926911 0 # Node ID f02ca65d7d7f8be06ffd0bcc381a40a38ec0a4ad # Parent a7de8c863a8fa58f3f0fe18b4f673e3a8785f3b1 [project @ 2005-08-24 23:41:51 by paulb] Improved the AOLserver recipes, adding a note about AOLserver's apparent inability to deal with "URL encoded" character values in paths. diff -r a7de8c863a8f -r f02ca65d7d7f docs/CGI/NOTES.txt --- a/docs/CGI/NOTES.txt Wed Aug 24 21:59:01 2005 +0000 +++ b/docs/CGI/NOTES.txt Wed Aug 24 23:41:51 2005 +0000 @@ -44,13 +44,16 @@ Configuring AOLserver ===================== +NOTE: AOLserver does not seem to handle "URL encoded" character values +NOTE: properly when such values appear in the path before the query string. + To configure applications for AOLserver, edit the server's configuration file (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). -ns_param map "POST /cgi /home/paulb/Software/Python/WebStack/examples/CGI" ;# CGI script file dir (POST). +ns_param map "GET /cgi/simple /home/paulb/Software/Python/WebStack/examples/CGI/SimpleHandler.py" ;# CGI script file (GET). +ns_param map "POST /cgi/simple /home/paulb/Software/Python/WebStack/examples/CGI/SimpleHandler.py" ;# CGI script file (POST). ns_param interps CGIinterps ns_section "ns/interps/CGIinterps" @@ -69,14 +72,14 @@ In other words, it must not be commented out with a leading # character. -With the above configuration, the example applications should be visitable -with URLs resembling these: +With the above configuration, the example application should be visitable with +a URL resembling one of these: -http://localhost/cgi/CookieHandler.py -http://localhost/cgi/SimpleHandler.py +http://192.168.1.100/cgi/simple +http://192.168.1.100:8000/cgi/simple -More advanced configuration of AOLserver to expose "cleaner" names for -application resources is not covered here. +(Where 192.168.1.100 is the address that AOLserver is listening on - it does +not seem to enjoy listening on localhost.) Configuring lighttpd ====================