Thread:Project:Support desk/How to store images of Mediawiki on separate servers?

For example, currently I am using Linode VPS which is expensive and slow. I would like to store image to Amazon S3 or another cheaper VPS.

Now I am using $wgUploadDirectory = "/wiki/image"; $wgUploadPath = "//static.mengniang.org"; to enable CDN from different domain.

However, the images still store at the same VPS with Mediawiki software. How to let mediawiki upload and load image to a separate servers?