[mod_python] How to hide implementation specifics inURIs/URLs?

Rich Salz rsalz at zolera.com
Mon Jan 7 22:50:17 EST 2002


> On my server, the URI:
> 
>    <http://192.168.1.50/tmp/mptest.py>

Yes, it will require your users to create mptest/index.py et al.
The translation /path/to/dir/foo.py to /path/to/dir/foo/index.py should
be pretty easy for them to figure out, however. :)

> convenient as i would like for the developers.  Furthermore, my user has to
> include a "/" at the end of the URI in order to ensure relative-link

I do'nt think so.  If someone asks for /path/to/dir/foo, apache will
send a redirect, telling them to ask for /path/to/dir/foo/, which will
then kick in the index trick.
You can set the ServerName (or something like that) in httpd.conf to be
whatever you need/want.
	/r$
-- 
Zolera Systems, Securing web services (XML, SOAP, Signatures,
Encryption)
http://www.zolera.com



More information about the Mod_python mailing list