mod_python apache directives
jacob.miles at gmail.com
jacob.miles at gmail.com
Wed Jan 18 07:56:16 EST 2006
Hello. I want to create a catch-all python script, that gets called
for any file request in a certain directory. I thought this apache
setup would do it, but it doesn't:
<Directory "/Users/jake/www/mydir">
SetHandler mod_python
PythonHandler handler
PythonDebug On
Options -MultiViews -Indexes
</Directory>
For example, I have a handler.py in that directory, but when I go to
the url 'http://127.0.0.1/mydir/handler.py', it delivers the text of
handler.py - not my intention. And if I enter any other filename, it
gives me a 404 Not found.
Does anyone know how to do what I'm trying to do?
- Jake
More information about the Python-list
mailing list