Domain Names / Server Names

Hi,

We'll be implementing this with multiple WP multisite installations on multiple servers. Instead of expanding a single multisite installation, we'll just add new servers / installations as needed (thus not putting all our eggs in one basket).

Since the server name appears to be the domain name of the individual multisite installation, I'm wondering if it's necessary to register a separate TLD for each installation, or if we can use a subdomain without messing up the users' site hostnames.

For example, instead of each multisite "server" being:

ourdomain1.com
ourdomain2.com
ourdomain3.com

...etc., can we just set them up as:

server1.ourdomain.com
server2.ourdomain.com
server3.ourdomain.com

...etc.?

Of course, we want users to have their own chosen website names, like username.ourdomain.com, plus the ability to map domains to their site.

Thanks,

Mark

  • aecnu

    Greetings wpcdn,

    It will be necessary and prudent to use the naming convention immediately below for several reasons to include the use of the Domain Mapping plugin:

    ourdomain1.com
    ourdomain2.com
    ourdomain3.com

    Using this naming convention below will probably result in absolute havoc with sub domains of sub domains, give your users sub domains of sub domains, and Domain Mapping plugin will not work:

    server1.ourdomain.com
    server2.ourdomain.com
    server3.ourdomain.com

    Cheers, Joe

  • wpcdn

    Let me clarify what I'm asking above.

    If we have multiple multisite "servers":

    ourdomain1.com
    ourdomain2.com
    ourdomain3.com

    ...and a user signs up as "mysite", can the user's site name just be:

    mysite.ourdomain.com

    ...or will it be mysite,ourdomain1.com or 2 or 3, etc. Since WHMCS determines which server to put the user on, how would they be informed as to what their site URL is?

    Thanks,

    Mark

  • wpcdn

    Also, from an end-user point of view, does it matter if our multisite installation is subdirectory or subdomain-based? I mean, if a user signs up for a subdomain in WHMCS, won't it map to the right site anyway?

    For example, if our multisite is set up like:

    ourdomain.com/site1
    ourdomain.com/site2

    ...and a user chooses a subdomain under one of our available domains:

    sitename.ouravailabledomain.com

    ...won't that map to the user's site, e.g.:

    sitename.ouravailabledomain.com ==> ourdomain.com/sitename

    And then the user can map a TLD to that too, right?

    Thanks,

    Mark

  • aecnu

    Greetings Mark,

    WHMCS allows accounts to use subdomains, and it can put subdomains for a single domain on multiple servers. Will that work with this plugin?

    If WHMCS can do this therefore the plugin can do this --> all the plugin is doing is bringing WHMCS into the wordpress installation with WHMCS still running the show in the back.

    However, you are addressing a different subject. It is not WHMCS that resolves the domain name or the sub domain names at all - it is WordPress that resolves the sub domains and the servers DNS that resolves the TLD.

    All WHMCS does is create the domain or sub domain and adds it to the server DNS and allocates the space and features via integration with the server control panel, but WHMCS does not have DNS nor does it direct or redirect domains names whatsoever the server DNS itself does it or WordPress.

    In the case of the main domain name the servers DNS resolves the domain name to the IP. From that moment on Wordpress resolves the sub domains. there is no sub domain entries in the server. Just the server sees it as all domains *.yourdomain.com go to IP 111.111.111.111 - WordPress then see the * portion and directs it to the relative place.

    Cheers, Joe

  • wpcdn

    Or would it work?

    Example: We have servers at:

    server1.ourdomain.com
    server2.ourdomain.com
    server3.ourdomain.com

    We install multisite installations on each server, e.g.:

    multisite1.com
    multisite2.com
    multisite3.com

    But we want our users to have site names like sitename.ourdomain.com, no matter what server they end up on.

    When they set up an account in WHMCS at mysitename.ourdomain.com, WHMCS will assign them to a "server" (multisite installation), and I guess it will point that subdomain at that "server" (multisite installation). So, mysitename.ourdomain.com may actually point to the multisite installation at multisite2.com (12.34.56.78). So, the DNS will point that hostname to that multisite installation...will WordPress then finish the direction and direct the request to the right site?

    Thanks,

    Mark

  • aecnu

    Greetings Mark,

    Unfortunately not, but not because of WHMCS nor this plugin, but because of WordPress.

    The reason why it will not work is because of WordPress resolving the sub domains and it is not relative to WHMCS nor this plugin.

    If there was a way to scan a second IP or more for sub domain resolution it would work, but because it is necessary to use *.domainname.com to resolve to WordPress it is always going to get hung up on the first server or to be more accurate the first WordPress installation.

    Cheers, Joe

  • wpcdn

    Hi,

    But actually the DNS would direct the request to the right server or WordPress installation. Let's say a user creates a new account via WHMCS called mysubdomain.domain.com. And WHMCS chooses to put that on the WordPress installation at 12.34.56.78. Any requests for mysubdomain.domain.com will then go to 12.34.56.78, which is the right WordPress installation. The question is whether WP will recognize the subdomain that was requested, and will serve up the right site.

    Any idea?

    Thanks,

    Mark