Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 22nd, 2012, 01:10 AM
adisel adisel is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 1 adisel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 59 sec
Reputation Power: 0
Modules Communicating

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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Modules Communicating

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap