• To better ask this question, you must know the existing configuration of the architecture first.

    We have a very redundant environment with multiple load-balancers and firewalls, etc.

    We have a back-end repository where files are stored in a big array and the front-end webservers rsync content from this back-end repository overwriting any changes made locally on the webservers.

    The database is replicated using the mysql replication to another server as well, but until a failure happens, the front-end webservers know only of the primary database server. Regardless…

    I noticed the upload option: Options–>Misc in the admin interface which defaults to “wp-content/uploads”.

    I am able to “write” to the back-end repository server using an internal IP, etc. and can setup a host called something like “admin.domain.com” and have it resolve to the internal repository IP to post images and uploads to so that it will replicate to all the web servers, but WP will redirect back to the main WordPress address (URL) as defined in the Options area when I try and use a hostname (non-www.domain.com).

    For example, the main website is: www.domain.com. My “admin” area, I want to setup is admin.domain.com (which resolves to an internal IP pointing to the repository)

    When I do it this way, it just redirects back to the main https://www.domain.com area.

    So my question is:

    Q: How do I do this so that just I (we) can update the blog with images/attachments to a host that is not defined in the primary options area.

    (Other than just creating an “image.domain.com” host and hard-linking by the way)

    Any help is appreciated.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bosco991

    (@bosco991)

    Any suggestions?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    My suggestion would be to setup the uploads directory as a remote symlink (using NFS or something similar) so that the files go directly to the backend system when you upload them to the website.

    But that’s what I’d do. Anything else will require you changing the WordPress upload code. It’s all the stuff in upload*.php in the wp-admin directory. You can modify it to work or it’s possible to replace it entirely without any modification (via a plugin). Your call.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load Balanced Web Servers (upload issues)’ is closed to new replies.