# HG changeset patch # User paulb # Date 1121177534 0 # Node ID 4c511fdbbf1f5bd8fa3d67c8485a176a8f280faf # Parent 1b737aceb08a32a5fa90119d987d721a249b1212 [project @ 2005-07-12 14:12:08 by paulb] Improved and tidied some things. diff -r 1b737aceb08a -r 4c511fdbbf1f docs/JavaServlet/NOTES.txt --- a/docs/JavaServlet/NOTES.txt Tue Jul 12 14:12:01 2005 +0000 +++ b/docs/JavaServlet/NOTES.txt Tue Jul 12 14:12:14 2005 +0000 @@ -1,4 +1,5 @@ -Preparing the application using the build script: +Preparing the Application +========================= Use the build.py script in the tools/JavaServlet directory to create a Web application directory. Then, deploy the directory in the servlet container. For @@ -27,9 +28,8 @@ http://localhost:8080/SimpleApp/ --------- - -Authentication/authorisation with Apache Tomcat: +Authentication/Authorisation with Apache Tomcat +=============================================== In Apache Tomcat, it is not typically possible to use an authenticator with a WebStack resource without additional configuration being performed first: diff -r 1b737aceb08a -r 4c511fdbbf1f docs/ModPython/NOTES.txt --- a/docs/ModPython/NOTES.txt Tue Jul 12 14:12:01 2005 +0000 +++ b/docs/ModPython/NOTES.txt Tue Jul 12 14:12:14 2005 +0000 @@ -1,4 +1,5 @@ -Configuring Apache: +Configuring Apache +================== To configure applications without authenticators, use the config.py script in tools/Apache to set up mod_python applications. For example: @@ -11,11 +12,17 @@ /cookies \ .cookies -This script can also be used to configure CGI applications. +This script can also be used to configure CGI applications. Run the script +without any arguments to see the documentation. + +With the above command, the "cookies" application should be visitable with +URLs resembling these: --------- +http://localhost/cookies/test.cookies +http://localhost/cookies/my.cookies -The manual approach: +The Manual Approach +------------------- For each application, add an Alias line to httpd.conf to point to the directory containing the handler package, then specify the appropriate module name as the @@ -51,9 +58,8 @@ /agenda/my-agenda.simple /simple/tasks/my-tasks.simple --------- - -Authentication/authorisation in mod_python: +Authentication/Authorisation in mod_python +========================================== Apache imposes fairly strict controls over authentication, requiring the addition of various declarations in the configuration in order to impose @@ -81,9 +87,8 @@ the users file and the appropriate access policy, must obviously be defined according to the actual application concerned. --------- - -Session storage with mod_python: +Session Storage with mod_python +=============================== The very simple SessionStore class provided in WebStack.Helpers.Session, and used by the WebStack.ModPython.Transaction class, requires that a directory be