[mod_python] One index.py for all subdirectories

Alexis Marrero-Narváez amarrero at mitre.org
Mon Dec 20 11:42:24 EST 2004


All,

How can I setup Apache2, in such way that I only need one index.py for 
all subdirectories. For instance here is a directory structure:
/persons
	/john
		/daughters
			/anna
			/alicia
	/mary
	index.py

I want the index.py in /persons to be used everytime the user access 
any URI under /persons. So if the user GET 
http://host.com/persons/john/daugthers/ apache handles the request by 
sending it to index.py inside /persons instead of trying to get 
/persons/john/daughters/index.py?

Are there any tricks other than using mod_rewrite?

Thanks,
/amn




More information about the Mod_python mailing list