# HG changeset patch # User paulb # Date 1114955813 0 # Node ID 7bdc478e80b39c4cbb6d26a0f1d777f68e54d2d9 # Parent c925905ba182c09e15a1dea344adc6cf5ced2116 [project @ 2005-05-01 13:56:50 by paulb] Added details of the Apache configuration script. diff -r c925905ba182 -r 7bdc478e80b3 docs/CGI/NOTES.txt --- a/docs/CGI/NOTES.txt Sun May 01 13:29:05 2005 +0000 +++ b/docs/CGI/NOTES.txt Sun May 01 13:56:53 2005 +0000 @@ -1,3 +1,21 @@ +Configuring Apache: + +To configure applications without authenticators, use the config.py script +in tools/Apache to set up mod_python applications. For example: + +python tools/Apache/config.py \ + CGI \ + /home/paulb/Software/Python/WebStack/examples/CGI/CookiesApp.py \ + /etc/apache2/sites-available \ + cookies \ + /cgi/cookies + +This script can also be used to configure mod_python applications. + +-------- + +The manual way: + Declare the script in httpd.conf or equivalent Web server configuration file. For example: diff -r c925905ba182 -r 7bdc478e80b3 docs/ModPython/NOTES.txt --- a/docs/ModPython/NOTES.txt Sun May 01 13:29:05 2005 +0000 +++ b/docs/ModPython/NOTES.txt Sun May 01 13:56:53 2005 +0000 @@ -1,3 +1,22 @@ +Configuring Apache: + +To configure applications without authenticators, use the config.py script +in tools/Apache to set up mod_python applications. For example: + +python tools/Apache/config.py \ + mod_python \ + /home/paulb/Software/Python/WebStack/examples/ModPython/CookiesApp/CookiesHandler.py \ + /etc/apache2/sites-available \ + cookies-mod \ + /cookies \ + .cookies + +This script can also be used to configure CGI applications. + +-------- + +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 PythonHandler.