[mod_python] Using SetHandler mod_python in the web root.

sp3ktr sp3ktr at gmail.com
Sat Jan 29 10:27:39 EST 2005


Hi all!

I'm relatively new to mod_python and am having trouble using
mod_python from the root of the web server.  My current apache2 config
is:

DocumentRoot /some/path
</Directory /some/path>
                SetHandler mod_python
                PythonHandler index
                PythonDebug On
</Directory>

the web server has this file structure:

/
/xsl
/xsl/default.xsl
/index.py

When i write out xml from index.py the link to /xsl/default.xsl
doesn't work because all requests go through index.py now.  I'm
wondering how to set up the handler in such a way that i can still
access the /xsl/* files?

The reason for this is that i would like all requests to go to
http://host/<request>  while retaining the /xsl as the main store of
xsl files.  And also to hide the .py extension in the url.

Any help would be greatly appreciated

-- 
adieu
sp3ktr


More information about the Mod_python mailing list