[mod_python] Using SetHandler mod_python in the web root.

Graham Dumpleton grahamd at dscpl.com.au
Sat Jan 29 16:10:14 EST 2005

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 
as Vampire would realise it didn't have to do anything special for it 
so decline to do so. Thus Apache would serve it up as normal. Thus just 
in configuration.

</Directory /some/path>
                 SetHandler vampire
                 PythonHandler index
                 PythonDebug On

The only difference then is you would access index page as:


and not:


If that page was serving up HTML, if you change the name of the handler 
"handler()" to "handler_html()", you could use:



More information about the Mod_python mailing list