[mod_python] location directive

Graham Dumpleton graham.dumpleton at gmail.com
Sun Sep 16 01:21:02 EDT 2007


On 16/09/2007, jon heise <jubei at csh.rit.edu> wrote:
> I'm trying to get modpython3 working with a location directive , i've
> got the following in my apache conf:
>
> <Location
> /python>
>     AddHandler mod_python
> .py
>     PythonHandler
> mptest
>     PythonDebug
> On
>     PythonPath "['/usr/local/www/html/test/'] +
> sys.path"
> </Location>
>
> however when i hit /python on my webserver i get the following in my
> error log:
> [Sat Sep 15 20:54:28 2007] [error] [client 66.67.50.9] File does not
> exist: /usr/local/www/html/python

You are not supposed to be using Location with simple mptest like
example. Use Directory instead. See:

  http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking

Graham


More information about the Mod_python mailing list