mod_python apache directives

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jacob.miles@gmail.com

    #1

    mod_python apache directives

    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

Working...