[mod_python] how do I eliminate the .py extension in url?

Jef Dodson jefdodson at yahoo.com
Thu Feb 10 18:39:10 EST 2005

Also, it's not a very general solution.  I would like to be able to access any number of scripts
without having the .py show up in the URL.  I am sure it is possible because I had it working
under Linux, but I am now trying to get it working under BSD so I'm wondering if maybe there is
some option that I'm missing in my httpd config file that was there by default on the Linux
installation.  Anyone have any ideas on this?


--- Graham Dumpleton <grahamd at dscpl.com.au> wrote:

> Chris Jackson wrote ..
> > If you rename my_script.py to index.py, you can just reference your
> > handler like this:
> > 
> > /scripts/my_handler
> Except that calling things "index.py" opens up another big can of worms
> if using publisher. See:
>   http://issues.apache.org/jira/browse/MODPYTHON-9
>   http://issues.apache.org/jira/browse/MODPYTHON-10
>   http://issues.apache.org/jira/browse/MODPYTHON-11
> Although some disagree, mod_python.publisher is broken in a number of
> ways and needs a good overhaul.
> Soon maybe I will hack together something to give same style of interface
> as publisher on top of Vampire just to show how much better things could
> be. Alas, probably no time to do so. :-)
> Graham

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the Mod_python mailing list