• I’m setting up a load balanced wordpress site running on IIS. I’d like to keep media files on a separate server and have copied the uploads folder there. I was able then to create a virtual directory in IIS to point to the location on the separate server. All the images are displaying correctly via the virtual directory and the URL.

    However, when I go to upload a media file, it uploads to the original server-even if I’ve deleted the directory. In this case, it creates a new one. It appears that it needs to find the physical path. My question is if there is a way to specify the physical path for the upload so it uploads to the directory on the separate server?

Viewing 3 replies - 1 through 3 (of 3 total)
  • jack randall

    (@theotherlebowski)

    Thread Starter joshuarich6

    (@joshuarich6)

    Thanks Jack, I did try this approach first. The result was that it modified both the upload path and the URL for viewing the images to be the same value. In the case of the URL, it appended the new URL to the end of the domain which of course did not work. In the case of the upload path, It did not like when I used the UNC path.

    The second approach was a plugin called wp original media path. This gives more granular control as you are able to modify both the URL and the upload path. However after modifying the upload path to be the UNC path i.e. \\Resources\uploads to point to the external server, I’m getting an error that says the upload cannot write to the directory uploads/01. I’ve checked all permissions on the files and it seems to be correct.

    Any other thoughts?

    you can use an CDN
    and try with this plugin
    read more

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Putting Media Files on Separate Server’ is closed to new replies.