WordPress.org

Ready to get started?Download WordPress

Forums

Installing and working with WP on multiple servers (1 post)

  1. ephramzerb
    Member
    Posted 6 years ago #

    I'm wondering if anyone has had any experience in installing a regular WP install accross multiple servers. One DB / main server along with 2 servers to which files get rsynced over to.

    The problem at hand is having file uploads work correctly. If you're accessing blogdomain.com directlly, there' s no gaurantee you're on the main server, which you need for your uploaded file to get correctly replicated to the rest of the servers

    I was able to override some WP functions that would allow for a custom administration area URL, so one accessing http://admin.blogdomain.com is gauranteed to be hitting the proper admin server.

    Currently, the way the file-upload system works is that it in upload-functions.php there are multiple redirects and one form which relies on get_option('siteurl') -- this subverts the whole point of the admin-specific URL, and it ends up uploading stuff to an arbitrary server.

    The question is: is there a more elegant solution outside of removing any calls to get_option('siteurl') in /wp-admin/upload-functions.php that I can use to make sure the file uploads go to the right place?

Topic Closed

This topic has been closed to new replies.

About this Topic