|
Joshua Ginsberg
listspam at flowtheory.net
Thu Jun 15 12:42:27 EDT 2006
Your Alias and your Python path both have /mnt at the begining. Your
Directory tag does not. Is that it?
-jag
On Thu, 2006-06-15 at 10:24 -0600, John Cartwright wrote:
> Hello All,
>
> for some reason apache is not recognizing my python handler, returning
> only the text of the python program. Can someone please tell me what's
> wrong in my configuration below:
>
> alias /python "/mnt/data1/htdocs/python"
> <Directory /data1/htdocs/python>
> SetHandler python-program
> PythonPath "sys.path+['/mnt/data1/htdocs/python']"
> PythonHandler mptest
> PythonDebug On
> </Directory>
>
>
>
> Here's the code for the handler (/data1/htdocs/python/mptest.py):
>
> import mod_python
> from mod_python import apache
>
> def handler(req):
> req.send_http_header()
> req.write("Hello World!")
> return apache.OK
>
> --------------------------------------------------------------------------------------------------------------------------------
> This is apache 2.0.46, mod_python 3.0.3, and RHEL WS 4.
>
> Thanks!
>
> -- john
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
|