Manual:$wgUploadThumbnailRenderHttpCustomHost/en

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