[mod_python] mod_python.publisher weirdness

Gregory (Grisha) Trubetskoy grisha at modpython.org
Wed Apr 14 21:58:35 EST 2004



On Wed, 14 Apr 2004, Jeff Hinrichs wrote:

> Also, If I wanted to hide the .py extensions and I don't want to use the
> PythonInterPerDirectory, I would most likely need to implement some apache
> rewrite rules to do something like
> /foo -> /foo/foo.py
> /foo/bar -> foo/bar/bar.py

The simplest way to hide the .py is to use SetHandler rather than
AddHandler in the apache config.

Grisha


More information about the Mod_python mailing list