1 For each application, add an Alias line to httpd.conf to point to the directory
2 containing the handler package, then specify the appropriate module name as the
3 PythonHandler.
4
5 Alias /simple "/home/paulb/Software/Python/WebStack/examples/ModPython/SimpleApp"
6
7 <Directory "/home/paulb/Software/Python/WebStack/examples/ModPython/SimpleApp">
8 AddHandler python-program .simple
9 PythonHandler SimpleHandler
10 PythonDebug On
11 </Directory>
12
13 It would appear that the directory really should be distinct from others
14 defined for mod_python, and that the handler should have a distinct name from
15 other handlers employed.
16
17 Using such a definition in httpd.conf, only server resources residing directly
18 below "/simple" in the URL "hierarchy" with names ending in ".simple" would be
19 associated with the Simple WebStack application's resources. Therefore, the
20 following URL paths would access the application:
21
22 /simple/home.simple
23 /simple/tasks.simple/my-tasks
24 /simple/agenda.simple/tomorrow/first-thing
25
26 Examples of URL paths not addressing the application are as follows:
27
28 /agenda/my-agenda.simple
29 /simple/tasks/my-tasks.simple