I have a web site a.com (please note: I own and run it). I want to be able to run a slightly modified version of it on b.com . The contents would be identical; however, I would apply some minor modifications to the HTML. Basically, when somebody requests b.com/something.html, the server in b.com would make a request to a.com (asking for /something.html) and then respond with the contents (after making small modifications).
Is there software that will do that already? Can I use squid for it? Or nginx? If they do the job, would they allow me to modify the HTML served?
The a.com site has cookies etc. So, whichever system would need to preserve cookies, headers, etc.