Manual:$wgLocalHTTPProxy

Details
Reverse proxy to use for requests to domains in.

When used, any port in the request URL will be dropped. The behaviour of redirects and cookies is dependent upon the reverse proxy actually in use, as MediaWiki doesn't implement any special handling for them.

If set to, no reverse proxy will be used for local requests.