<div dir="ltr">Hi,<div><br></div><div>I have a web site <a href="http://a.com">a.com</a>. I own it and run it, but I don't have access to the backend. The pages served by <a href="http://a.com">a.com</a> are normal plain HTML pages.</div><div><br></div><div>I want to run <a href="http://b.com">b.com</a> as a duplicate of <a href="http://a.com">a.com</a>, with nginx acting as a proxy.  The contents would be identical; however, I would apply some minor modifications to the HTML. Basically, when somebody requests <a href="http://b.com/something.html">b.com/something.html</a>, the server in <a href="http://b.com">b.com</a> would make a request to <a href="http://a.com">a.com</a> (asking for /something.html) and then respond with the contents (after making small modifications, probably using <span style="font-size:13px;color:rgb(35,38,41);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Adjusted","Segoe UI","Liberation Sans",sans-serif"> </span><a href="http://nginx.org/en/docs/http/ngx_http_sub_module.html#sub_filter" rel="nofollow noreferrer" style="font-size:13px;margin:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Adjusted","Segoe UI","Liberation Sans",sans-serif;vertical-align:baseline;box-sizing:inherit">nginx.org/en/docs/http/ngx_http_sub_module.html#sub_filter</a>).</div><div><br>The <a href="http://a.com">a.com</a> site has cookies etc. So, nginx should proxy those too.<br></div><div><br></div><div>Is this possible with nginx? Is there an example configuration I can use as a starting point?</div><div><br></div><div>Merc.</div></div>