[mod_python] How to hide implementation specifics in URIs/URLs?

Gregory (Grisha) Trubetskoy grisha at modpython.org
Tue Jan 8 01:30:13 EST 2002


I think simply adding

SetHandler python-program
PythonHandler mptest

at the DocumentRoot level would achieve that effect, but you better be
prepared to handle *every* request with modpython, which includes images,
html, etc.

Grisha


On Mon, 7 Jan 2002, Matthew England wrote:

> At 1/7/2002 10:17 PM, Mike Bell wrote:
>
> >How about
> >
> ><Location /tmp/mptest>
> >   Sethandler python-program
> >   PythonHandler mptest
> ></Location>
> >
> >?
>
> Unless I'm missing something (and again remember i'm a newbie), this
> doesn't help me for other files in other directories.
>
> I basically want any python script to be stripped of its .py extension in
> the URI that uses it.  Otherwise, as i see it, a web-server developer has
> to make an entry in httpd.conf for *every* .py file.  ouch.
>
> -Matt
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
>




More information about the Mod_python mailing list