[mod_python] eliminating last foo.py from url?

Mark Harrison mh at pixar.com
Tue Dec 19 00:33:00 EST 2006


Graham Dumpleton wrote:
> Mark Harrison wrote ..
>>
>> But it's strange, even <Location> requires a trailing slash.  If I have
>> too
>> hard of a time getting clients to include it then I'll add the Alias.
> 
> Strange, as it shouldn't. Only thing I can think of is that the path you are
> choosing for the Location directive still has a corresponding physical
> directory of the same path under the document root and that is confusing
> Apache and it is still wanting to do trailing slash redirection before it
> matches it against the Location directive.

Ahh, nice catch.  Removing that directory causes both the trailing
slash and non-trailing slash URLs to work.

>> BTW, apache+mod_python seems to be a nice xmlrpc platform.
>> When I get this polished, I'll try and get permission to put a note on
>> the
>> wiki about setting it up.
> 
> You may want to have a look at my Vampire package which contains an
> XML-RPC service endpoint for use in mod_python. All you need to do
> is something like:

I'll check it out... thanks!

Mark


More information about the Mod_python mailing list