Use nginx to return a scraped copy of another site

Francis Daly francis at daoine.org
Thu Dec 1 19:42:32 UTC 2022


On Thu, Nov 10, 2022 at 08:50:14PM +0800, Tony Mobily wrote:

Hi there,

> I want to run b.com as a duplicate of a.com, with nginx acting as a proxy.
> The contents would be identical; however, I would apply some minor
> modifications to the HTML.

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

It sounds mostly straightforward.

http://nginx.org/r/proxy_pass is probably the basic directive to use.

If there are specific things that do not respond the way you want,
perhaps something can be changed somewhere to deal with those.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list