logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: Modules Communicating
Author
adisel



Joined: 26 Jul 2012
Posts: 3
Location: Israel

PostPosted: Tue 21 Aug '12 9:48    Post subject: Modules Communicating Reply with quote

Hi!
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.

Code:
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.

Code:
apr_table_set(r->subprocess_env, "URL", strUriWithPyAtTheEnd);


Thanks
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Tue 21 Aug '12 20:00    Post subject: Reply with quote

A pity that not that much dev's around here.

Maybe you can also post your question at http://httpd.apache.org/lists.html#http-modules , there are dev's around there which are helpfully.


Steffen
Back to top
adisel



Joined: 26 Jul 2012
Posts: 3
Location: Israel

PostPosted: Wed 22 Aug '12 9:34    Post subject: Reply with quote

Thanks Steffen. I posted my question over there as well, hope to get an answer..
Back to top


Reply to topic   Topic: Modules Communicating View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads