|
Home > Archive > Web Servers on Unix and Linux > June 2006 > how to let apache change a webpage content?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
how to let apache change a webpage content?
|
|
| rabbit_guai@hotmail.com 2006-06-01, 7:15 am |
| Hey everybody. this is my first post here. wish to see reponses from
you experts.
I am new to linux, proxy, apache these stuffs.
I have a rough idea of how proxy server works. It first receives a
request from a client, then fetches the file the client requests, then
sends it back to the client.
What I need to do is that before the file (webpage, be specific) is
sent back to the client, I want to modify the page (eg, change some
links in the page, add some words). How to do this? I know it's
something Apache is in charge of. And it seems some programming is
needed.
Could anyone tell me how to do this? How and where do I change apache
source code?
| |
| Nick Kew 2006-06-01, 7:15 am |
| rabbit_guai@hotmail.com wrote:
> What I need to do is that before the file (webpage, be specific) is
> sent back to the client, I want to modify the page (eg, change some
> links in the page, add some words). How to do this? I know it's
> something Apache is in charge of. And it seems some programming is
> needed.
You use a filter.
See http://apache.webthing.com/ for a number of examples, and
in particular my presentation slides on exactly this subject
at http://apache.webthing.com/filter.pdf .
--
Nick Kew
|
|
|
|
|