Manual:$wgLocalHTTPProxy

Details
Proxy to use to requests to domains in. If set to, no proxy will be used for local requests.

This is being re-implemented in 728622 to use a reverse proxy and is expected to land in MediaWiki 1.38 instead.