1.1 --- a/docs/CGI/NOTES.txt Sun May 01 13:29:05 2005 +0000
1.2 +++ b/docs/CGI/NOTES.txt Sun May 01 13:56:53 2005 +0000
1.3 @@ -1,3 +1,21 @@
1.4 +Configuring Apache:
1.5 +
1.6 +To configure applications without authenticators, use the config.py script
1.7 +in tools/Apache to set up mod_python applications. For example:
1.8 +
1.9 +python tools/Apache/config.py \
1.10 + CGI \
1.11 + /home/paulb/Software/Python/WebStack/examples/CGI/CookiesApp.py \
1.12 + /etc/apache2/sites-available \
1.13 + cookies \
1.14 + /cgi/cookies
1.15 +
1.16 +This script can also be used to configure mod_python applications.
1.17 +
1.18 +--------
1.19 +
1.20 +The manual way:
1.21 +
1.22 Declare the script in httpd.conf or equivalent Web server configuration file.
1.23 For example:
1.24
2.1 --- a/docs/ModPython/NOTES.txt Sun May 01 13:29:05 2005 +0000
2.2 +++ b/docs/ModPython/NOTES.txt Sun May 01 13:56:53 2005 +0000
2.3 @@ -1,3 +1,22 @@
2.4 +Configuring Apache:
2.5 +
2.6 +To configure applications without authenticators, use the config.py script
2.7 +in tools/Apache to set up mod_python applications. For example:
2.8 +
2.9 +python tools/Apache/config.py \
2.10 + mod_python \
2.11 + /home/paulb/Software/Python/WebStack/examples/ModPython/CookiesApp/CookiesHandler.py \
2.12 + /etc/apache2/sites-available \
2.13 + cookies-mod \
2.14 + /cookies \
2.15 + .cookies
2.16 +
2.17 +This script can also be used to configure CGI applications.
2.18 +
2.19 +--------
2.20 +
2.21 +The manual approach:
2.22 +
2.23 For each application, add an Alias line to httpd.conf to point to the directory
2.24 containing the handler package, then specify the appropriate module name as the
2.25 PythonHandler.