August 22nd, 2012, 01:10 AM
I am writing my own module that handles all incoming requests. In some cases, I want this requests to be handled by mod_python which I installed. In this cases, my module should change the requested file extension to .py, which is configured to be handled by mod_python.
AddHandler mod_python .py
I have tow questions:
1. How can I set the modules order, so my module will handle the request first, change its url, and then mod_python will handle it?
2. Which field in the request_rec I should change so it will take effect? I tried to change the URL key in subprocess_env table, but the request was not handled by mod_python.
apr_table_set(r->subprocess_env, "URL", strUriWithPyAtTheEnd);