[mod_python] using publisher as a virtual dir with apache2/mp3

Manfred Stienstra manfred.stienstra at dwerg.net
Sat Mar 27 17:13:33 EST 2004

On Fri, 2004-03-26 at 12:39, Marc O. Sandlus wrote:
> However, I still need this URI
> http://www.mydomain.tld/mypythonhander/file1
> to call the functions, right? I prefer
> http://www.mydomain.tld/file1
> Furthermore, I figured that your little script does exactly what
> mod_python.publisher does, so I would like to use the publisher instead 

The AddHandler directive serves the directory with the handler.py
handler, so when there is a request on the directory apache will ask
mod_python to handle it. So you could use the second url, but also the
first because it doesn't matter what you put there.

I guess this is exactly what the publisher does, but this gives you a
little more control.


More information about the Mod_python mailing list