[mod_python] Configuring Apache Server With Mod Python

Jorey Bump list at joreybump.com
Fri Apr 28 13:33:37 EDT 2006


Alejandro Michelin Salomon ( Adinet ) wrote:

> <Directory "D:/webroot/test">
> 
>         AddHandler mod_python .py
>         PythonHandler mptest
>         PythonDebug On 
> </Directory>
> 
> I runs --> localhost/test/mptest.py
> 
> Runs ok a test
> 
> When try tu run the same file in localhost/mptest.py
> 
> The apache only prints python code in the page.

You've only defined it for D:/webroot/test. Change the above to:

  <Directory "D:/webroot">
  ...

and it will work.


More information about the Mod_python mailing list