[mod_python] Using SetHandler mod_python in the web root.

sp3ktr sp3ktr at gmail.com
Sat Jan 29 22:24:07 EST 2005


On Sun, 30 Jan 2005 08:10:14 +1100, Graham Dumpleton
<grahamd at dscpl.com.au> wrote:
> 
> On 30/01/2005, at 3:02 AM, Nicolas Lehuen wrote:
> > 2) Keep the SetHandler directive, so everything will go through
> > mod_python, but use the Vampire handler
> > (http://www.dscpl.com.au/projects/vampire/). You then have to
> > configure Vampire to correctly serve .xsl files.
> 
> Actually, you wouldn't have to do anything for the .xsl as far as
> configuration,
> as Vampire would realise it didn't have to do anything special for it
> and
> so decline to do so. Thus Apache would serve it up as normal. Thus just
> have
> in configuration.
> 
> </Directory /some/path>
>                  SetHandler vampire
>                  PythonHandler index
>                  PythonDebug On
> </Directory>
> 
> The only difference then is you would access index page as:
> 
>    /index
> 
> and not:
> 
>    /index.py
> 
> If that page was serving up HTML, if you change the name of the handler
> from
> "handler()" to "handler_html()", you could use:
> 
>    /index.html
> 
> Graham
> 
> 

I think i'll try the vampire setup, thanks heaps for the quick replies! : )
-- 
adieu
sp3ktr


More information about the Mod_python mailing list