WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Using alternate URL's for wordpress (5 posts)

  1. Kobor
    Member
    Posted 1 year ago #

    I have a working wordpress site, as example http://www.example.com .
    I want to extend the install to a high available 2 server config.
    Now for simplicity i don't want a cluster fs or something like that, just i'm syncing the files from first server to second from time to time.

    Now since i will have a loadbalancer before the 2 server, when i login can end up in any of the 2 servers . I would like to login to the first, so if i upload a file will get synced to 2nd.

    Added 2 new hostnames : server1.example.com and server2.example.com, configured in the webserver etc.
    But when i try to view http://server1.example.com/wp-admin it gets redirected to http://www.example.com/wp-login.php. I tried to login via http://server1.example.com/wp-login.php, but after login i get redirected to the dashboard at http://www.example.com .
    Tried to disable the canonical URL redirect, but didn't help.

    Any solution to this?

    Thanks.

  2. Abhishek Ghosh
    Member
    Posted 1 year ago #

    Now since i will have a loadbalancer before the 2 server, when i login can end up in any of the 2 servers

    Thats happening due to wrong config.

    First build setup separately from scratch with IP only. You can use heartbeat pacemaker for highly scalable 2 server setup. Loadbalancers should never interfere normal function. Which web hosting service you are using and which kind of technology for loadbalancer ?

    By any means use 3 cloud database (with FQDN) with master slave config (use HyperDB plugin) - without caching your WP will load within 0.7 seconds. (ref : http://wordpress.org/support/topic/mysql-or-mysqli-is-best?replies=24#post-3235729)

    Make the new setup fool proof, then restore the backup from old setup to new one. Then change the domain records for pointing the domain name.

  3. Kobor
    Member
    Posted 1 year ago #

    You are answering the question i didn't ask. While i could setup the loadbalancer to drop me allways on the same server based on source IP, this wouldn't help me tomorrow when my IP changes or when the other admins/posters need to login etc.

    The question: can i make wordpress work on server1.example.com and server2.example.com to (without redirecting to the main site).

  4. Abhishek Ghosh
    Member
    Posted 1 year ago #

    You are answering the question i didn't ask.

    Because it will never work with WordPress in the way you want. WordPress is very simple software.

  5. Kobor
    Member
    Posted 1 year ago #

    For future reference: i was able to do what i wanted with this plugin:
    http://odyniec.net/blog/2010/02/wordpress-blog-and-multiple-server-names/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.