Forum Moderators: phranque

Message Too Old, No Replies

Apache proxy server and content manipulation

         

weisswurst

6:51 am on Aug 12, 2010 (gmt 0)

10+ Year Member



Hi!

I'd like to use an apache webserver as proxy.
And further more I need to manipulate every page which is delivered through that proxy. For example make every background green. Or replace any given title tag with "Greetings from your apache server". Or add a picture on top of every delivered page.

Is there a module with wich I can accomplish that?

Thx
wurstl

lammert

7:20 am on Aug 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi wurstl, first of all Welcome to WebmasterWorld!

The default proxy module of Apache doesn't have the functionality to interpret and rewrite the content of files it proxies. You need some scripting language for that.

Is the format of the pages predefined, or will the service be used for pages where you have no control over the page format? In the latter case it will be almost impossible to and and replace tags inside the code itself because there are literally a zillion ways to code a page. In that case you may be better of framing the pages in an iframe, and adding your customized tags in the encapsulating web page.

weisswurst

8:02 am on Aug 12, 2010 (gmt 0)

10+ Year Member



Well it's just for two webpages.
This two pages lie on their own webservers and should be accessed trough a start page which could be on the proxy itself. The manipulation things goal is to give both websites a more similar look.