|
Neo
neo at https.ru
Sun Oct 6 18:25:52 EST 2002
Hi all !
I was just playing with mod_python 3 & Apache 2.0.42
(RedHat Linux 7.2). Below are my "mptest.py" file, Apache VH config
and the resuts of the single request:
GET /mptest.py
----------------BEGIN----------------
from mod_python import apache
interp = None
def transhandler(req):
interp = req.interpreter
return apache.OK
def handler(req):
req.write(repr(interp))
return apache.OK
-----------------END-----------------
Config for virtual host:
----------------BEGIN----------------
<VirtualHost *>
[... skipped ...]
PythonPath "..."
PythonDebug On
PythonTransHandler mptest
SetHandler python-program
PythonHandler mptest
<Directory "/home/w-https/test-www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.html index.htm index.html.var
AddDefaultCharset UTF-8
</Directory>
[... skipped ...]
</VirtualHost>
-----------------END-----------------
Apache virtualhost log file:
----------------BEGIN----------------
[Sun Oct 06 18:02:44 2002] [info] [client 212.188.98.243] Module bug?
Request filename is missing for URI /mptest.py
-----------------END-----------------
*** I guess "transhandler" in the above example should somehow set
filename for incoming request for Apache to be happy? But SEGFAULT
is not the best action to report the error :)
Apache main server log file:
----------------BEGIN----------------
[Sun Oct 06 18:02:45 2002] [notice] child pid 12331 exit signal
Segmentation fault (11)
-----------------END-----------------
---
Neo Eureka / mailto:neo at https.ru
|