[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 
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



More information about the Mod_python mailing list