[Tutor] Mod_python greedy url matching

Jay Loden python at jayloden.com
Wed Oct 5 07:27:39 CEST 2005


I'm having trouble with Apache and Mod_python - mod_python is set to 
use /var/www/html and pass all *.htm files on to the handler I wrote. 
Unfortunately, mod_python does a greedy match, 
so /var/www/html/subdirectory/file.htm still gets passed to the handler!  Is 
there some way to limit the handler to the directory and NOT include 
subdirectories?

-Jay


More information about the Tutor mailing list