Mass redirection in Nginx to an external host(s)


I have around 500-1000 URLs to do redirects over. I’m aware how to do it when redirects belong to the same host — via nginx maps.

But how to do it when some of them are local, but others are external?