blob: c2df73cf8ff2c8b9573e350f9f4fcb7eed3e70e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<IfDefine PYTHON>
<IfModule !mod_python.c>
LoadModule python_module modules/mod_python.so
</IfModule>
</IfDefine>
<IfModule mod_python.c>
#
# Mod_python is a module that embeds the Python language interpreter
# within the server, allowing Apache handlers to be written in Python.
#
# This will cause files beneath /home/httpd/htdocs with the extension .spam
# to be handled by the Python script /home/httpd/htdocs/eggs.py
#
#<Directory /home/httpd/htdocs>
# <IfModule mod_mime.c>
# AddHandler python-program .spam
# </IfModule>
# PythonHandler eggs
#</Directory>
# This will cause all requests to the /python heirachy of your
# webserver to be handled by the python script /path/to/myhandler.py
#
#<Location /python>
# SetHandler python-program
# PythonPath "sys.path + ['/path/to']"
# PythonHandler myhandler
#</Location>
# This will cause all requests to the /python heirachy of your
# webserver to be handled by mod_python's Publisher handler
#
#<Location /python>
# SetHandler python-program
# PythonHandler mod_python.publisher
#</Location>
</IfModule>
|