Use nginx to return a scraped copy of another site

Tony Mobily tonymobily at
Thu Nov 10 12:50:14 UTC 2022


I have a web site I own it and run it, but I don't have access to
the backend. The pages served by are normal plain HTML pages.

I want to run as a duplicate of, 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, the server in would make a request to
(asking for /something.html) and then respond with the contents (after
making small modifications, probably using

The site has cookies etc. So, nginx should proxy those too.

Is this possible with nginx? Is there an example configuration I can use as
a starting point?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list