[mod_python] excluding files from traversal

Dzhelil Rufat dzhelil at gmail.com
Mon Sep 8 13:14:39 EDT 2008


I have an index.py and a bunch of other python libraries in my mod_python
directory. I use the publisher as my mod_python handler.

I would like for publisher to traverse only the index.py file and not any of
the library python files that reside in the same directory. How can I
specify this in httpd.conf?

I tried something like

SetHandler mod_python index.py

but that did not work.

Right now, I use the following configuration for httpd.conf:

<Directory /mod_python_dir>
    SetHandler mod_python
    PythonHandler mod_python.publisher
    PythonDebug On

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080908/ab3fec1e/attachment.html

More information about the Mod_python mailing list