LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   apache & mod_proxy dataflow (https://www.linuxquestions.org/questions/linux-server-73/apache-and-mod_proxy-dataflow-840944/)

mightymike1988 10-28-2010 06:51 AM

apache & mod_proxy dataflow
 
Hello fellow developers,

for my home development i want to edit the data that mod_proxy receives from the original server before it is sent to the client.

i already figured out that i need to search in the mod_proxy_http.c file and probably need to search somewere in the ap_proxy_http_process_response() function but i can't figure it out where to search becouse it uses a lot of the apache portable runtime data types and functions.

so please if someone can help me out or tell me in a more detailed manner how data is processed i would be very happy!

prayag_pjs 10-28-2010 07:38 AM

Try using

<IfModule mod_rewrite.c>

http://www.workingwith.me.uk/article...ng/mod_rewrite

http://www.easymodrewrite.com/example-moved

mightymike1988 10-28-2010 07:42 AM

Quote:

Originally Posted by prayag_pjs (Post 4142127)

Hi prayag_pjs,
thanks for your reply but this is not what i want, it is for a school project and i need to change it at code level!

I'll give a bit more info:

when the client wants to connect to server example.com but has a proxy between it the client request goes to the proxy which will make a connection to example.com and passes the output to the client transparent. now I want the proxy server if the output from example.com contains the word "appel" to change the word to like "orange" and then pass it back to the client. but this must be done at code level not at configuration level


All times are GMT -5. The time now is 03:57 PM.