[mod_python] eliminating last foo.py from url?

Mark Harrison mh at pixar.com
Thu Dec 7 18:14:11 EST 2006


So, I've pretty much copied the standard directory configuration,

<Directory "/apache/htdocs/appserv">
         AddHandler mod_python .py
         PythonHandler appserv
         PythonDebug On
</Directory>

and I can reference my service by http://foo.com/appserv/appserv.py
(or any other .py in that directory, of course).

How can I make it such that I can reference with the trailing foo.py?
e.g.
http://foo.com/appserv

Many TIA!
Mark


More information about the Mod_python mailing list