Manual:$wgUploadThumbnailRenderHttpCustomHost

Details
When using the "http" , lets one specify a custom Host HTTP header.