Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6DF01D71F for ; Wed, 22 Aug 2012 15:42:57 +0000 (UTC) Received: (qmail 62364 invoked by uid 500); 22 Aug 2012 15:42:57 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 62313 invoked by uid 500); 22 Aug 2012 15:42:56 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Delivered-To: moderator for modules-dev@httpd.apache.org Received: (qmail 36878 invoked by uid 99); 22 Aug 2012 07:33:31 -0000 X-ASF-Spam-Status: No, hits=2.9 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) From: Adi Selitzky To: "modules-dev@httpd.apache.org" Subject: Modules Communicating Thread-Topic: Modules Communicating Thread-Index: Ac2AOB10sZeB3WDqS+2k0oZupaWAeQ== Date: Wed, 22 Aug 2012 07:31:16 +0000 Message-ID: <21EEEC41EF177749A2119EAAB86E9273CA42C387@PCHQ-MX.passcall.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.9.8.32] Content-Type: multipart/alternative; boundary="_000_21EEEC41EF177749A2119EAAB86E9273CA42C387PCHQMXpasscalll_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_21EEEC41EF177749A2119EAAB86E9273CA42C387PCHQMXpasscalll_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi! I am writing my own module that handles all incoming requests. In some case= s, I want this request to be handled by mod_python which I installed. In th= ese cases, my module should change the requested file extension to .py, whi= ch 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 fi= rst, 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 n= ot handled by mod_python. apr_table_set(r->subprocess_env, "URL", strUriWithPyAtTheEnd); Thanks --_000_21EEEC41EF177749A2119EAAB86E9273CA42C387PCHQMXpasscalll_--