1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<title>5.4.7 PythonHandlerModule</title>
5
<META NAME="description" CONTENT="5.4.7 PythonHandlerModule">
6
<META NAME="keywords" CONTENT="modpython">
7
<META NAME="resource-type" CONTENT="document">
8
<META NAME="distribution" CONTENT="global">
9
<link rel="STYLESHEET" href="modpython.css">
10
<link rel="first" href="modpython.html">
11
<link rel="contents" href="contents.html" title="Contents">
12
<link rel="index" href="genindex.html" title="Index">
13
<LINK REL="next" href="dir-other-par.html">
14
<LINK REL="previous" href="dir-other-pi.html">
15
<LINK REL="up" href="dir-other.html">
16
<LINK REL="next" href="dir-other-par.html">
19
<DIV CLASS="navigation">
20
<table align="center" width="100%" cellpadding="0" cellspacing="2">
22
<td><A href="dir-other-pi.html"><img src="icons/previous.gif"
23
border="0" height="32"
24
alt="Previous Page" width="32"></A></td>
25
<td><A href="dir-other.html"><img src="icons/up.gif"
26
border="0" height="32"
27
alt="Up One Level" width="32"></A></td>
28
<td><A href="dir-other-par.html"><img src="icons/next.gif"
29
border="0" height="32"
30
alt="Next Page" width="32"></A></td>
31
<td align="center" width="100%">Mod_python Manual</td>
32
<td><A href="contents.html"><img src="icons/contents.gif"
33
border="0" height="32"
34
alt="Contents" width="32"></A></td>
35
<td><img src="icons/blank.gif"
36
border="0" height="32"
37
alt="" width="32"></td>
38
<td><A href="genindex.html"><img src="icons/index.gif"
39
border="0" height="32"
40
alt="Index" width="32"></A></td>
42
<b class="navlabel">Previous:</b> <a class="sectref" href="dir-other-pi.html">5.4.6 PythonInterpreter</A>
43
<b class="navlabel">Up:</b> <a class="sectref" href="dir-other.html">5.4 Other Directives</A>
44
<b class="navlabel">Next:</b> <a class="sectref" href="dir-other-par.html">5.4.8 PythonAutoReload</A>
47
<!--End of Navigation Panel-->
49
<H2><A NAME="SECTION007470000000000000000"> </A>
50
<a name="l2h-245"> </a>
52
5.4.7 PythonHandlerModule
56
<b><em class="citetitle"><a
57
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Syntax"
60
PythonHandlerModule module
61
<BR><em class="citetitle"><a
62
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Context"
65
server config, virtual host, directory, htaccess
66
<BR><em class="citetitle"><a
67
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Override"
71
<BR><em class="citetitle"><a
72
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Module"
78
PythonHandlerModule can be used an alternative to Python*Handler
79
directives. The module specified in this handler will be searched for
80
existence of functions matching the default handler function names,
81
and if a function is found, it will be executed.
84
For example, instead of:
85
<dl><dd><pre class="verbatim">
86
PythonAutenHandler mymodule
87
PythonHandler mymodule
88
PythonLogHandler mymodule
93
<dl><dd><pre class="verbatim">
94
PythonHandlerModule mymodule
99
<DIV CLASS="navigation">
101
<table align="center" width="100%" cellpadding="0" cellspacing="2">
103
<td><A href="dir-other-pi.html"><img src="icons/previous.gif"
104
border="0" height="32"
105
alt="Previous Page" width="32"></A></td>
106
<td><A href="dir-other.html"><img src="icons/up.gif"
107
border="0" height="32"
108
alt="Up One Level" width="32"></A></td>
109
<td><A href="dir-other-par.html"><img src="icons/next.gif"
110
border="0" height="32"
111
alt="Next Page" width="32"></A></td>
112
<td align="center" width="100%">Mod_python Manual</td>
113
<td><A href="contents.html"><img src="icons/contents.gif"
114
border="0" height="32"
115
alt="Contents" width="32"></A></td>
116
<td><img src="icons/blank.gif"
117
border="0" height="32"
118
alt="" width="32"></td>
119
<td><A href="genindex.html"><img src="icons/index.gif"
120
border="0" height="32"
121
alt="Index" width="32"></A></td>
123
<b class="navlabel">Previous:</b> <a class="sectref" href="dir-other-pi.html">5.4.6 PythonInterpreter</A>
124
<b class="navlabel">Up:</b> <a class="sectref" href="dir-other.html">5.4 Other Directives</A>
125
<b class="navlabel">Next:</b> <a class="sectref" href="dir-other-par.html">5.4.8 PythonAutoReload</A>
127
<span class="release-info">Release 3.1.3, documentation updated on February 17, 2004.</span>
129
<!--End of Navigation Panel-->