Can I set main site not use main IP, use another Dedicated I

Dear Sir,

I set WPMU by godaddy reseller hosting plan,could have three IP address.

Main IP I want to use domain.net as a reseller site

Other Dedicated IP address I want to use domain.com set as a mainsite.

All the other domains point to Dedicated IP address not to main IP.

but when I set wildcard subdomains at WHM cpanel, all the *subdomain (*.domain.com)

document root goes to main IP address

(Shared IP address for admin, and all others domains.) not go to the main site IP.

What I should do, I must set mainsite at main IP, or I could set to Other Dedicated IP address. wildcard subdomain document root diffrence main website IP

Thanks!

  • Alexander
    • DEV MAN’s Mascot

    Hello @hi999,

    Just to clarify, everything with WordPress Multisite can be done from a single IP address. If you have multiple IP addresses, you can setup other sites, but for the most part, every site in your network will connect via the one IP address.

    If you want to change your IP address without affecting your sites, you would need to coordinate this with GoDaddy and just ensure that all the domains are setup to reach that IP either via an A record, or a CNAME to the main domain.

    I’m still a bit unsure of what you’re trying to do here. Could you give a bit more info? Perhaps just let me know exactly how your site is setup currently, then also how you would like to have it setup after making changes.

    Best regards

  • hi999
    • The Crimson Coder

    Hi Alexander,

    Thank you for help.

    At very beginning set up reseller hosting AC

    I use domain.net,want to set reseller site.

    So domain.net take the main IP. 50.63.181.15

    I want to set up WPMU use my domain.com to

    Dedicated IP address 50.62.43.126 as a main site.

    I have set up WPMU site, multi-domains,domain mapping plugs.

    I have point all the domains to main site

    and all the domains are setup to reach that Dedicated IP address

    via an A record to the main domain.

    but not point the the main IP(for reseller site).

    and add many domains to the main site.

    After I add many domins, my main site have

    “Warning! Wildcard DNS for domains.COM may not be configured correctly!”

    So I try to create the wildcard (*) subdomain on every domain

    to the WordPress multisite network.add wildcare subdomain at WHM cpanel.

    subdomain:*.110tv.com , document root /public_html

    But I find *.110tv.com IP address is 50.63.181.15 at WHM cpanel (main IP, I plan to set as reseller AC and use my .net domain. not my main site IP.

    My main site IP 50.62.43.126, I have point 110tv.com and all the top domains to this IP and add an A record to the main site domain and IP.

    wildcard subdomain IP difference from main site IP

    Now what I should do, could you kindly look my WHM cpanel

    Thank you!

    That link is helpful

    http://wp.tutsplus.com/tutorials/wordpress-multisite-beyond-basics-essentials-and-domain-mapping/

  • hi999
    • The Crimson Coder

    Hi Sir,

    when I Create a New Account at WHM, and add * subdomain, the domain/site

    automatic goes to my main IP 50.63.181.15.

    not go to my main site IP 50.62.43.126

    What is the best solution to solved the problem.

    Thanks!

  • Alexander
    • DEV MAN’s Mascot

    Hello again,

    Ok, I think the problem here is that WHM is routing the domains to different accounts, and therefore different IPs. All the domains will need to be added to the same account. This way all the domains will resolve to the same virtual host where WordPress is installed.

    Otherwise WHM will just look for a folder associated with that domain inside the other account.

    For example, some of the domains that are being shown as unreachable are actually setup properly with a wildcard – they are just not reaching our WordPress installation.

    When you add a new domain to a cpanel account, you can point it to the WordPress installation. This is how WordPress can begin using it.

    Best regards

  • hi999
    • The Crimson Coder

    Hi Alexander,

    Thank you for help.

    I should go to WHM, List Accounts, cpanel,domains,redirects-all public domains or domains?? redirects to main site IP , wild card redirect

    should all public domains or only the domain

    Redirect with or without www.

    or Wild Card Redirect

    or Where I should do.

    Could you do screenshot

    Thank you so much!

  • hi999
    • The Crimson Coder

    Hi Alexander

    “When you add a new domain to a cpanel account, you can point it to the WordPress installation. This is how WordPress can begin using it.”

    WHM I can not find where could point main IP to main site Dedicated IP address.

    Thank you!

  • Alexander
    • DEV MAN’s Mascot

    @hi999,

    As I said before your wildcard subdomains are fine and are pointing to the correct IP address. The problem at hand is not related to your IP address.

    The problem is, all this does is get that domain to you Server. Once it reaches the server, the server will tell it what website on that server it should be sent to.

    If you were using a more simple server that only had one website hosted, all you would need to worry about is making sure all the domains went to that IP.

    This case is different. WHM and cPanel allow you to route domains to different places after the reach your server.

    So your IP setup is fine, but for every domain that you wish to use within WordPress, you’ll need to setup that domain as an addon domain in the same cPanel account where your WordPress Multisite is setup.

    To explain further: When WordPress Multisite is used, every request goes through the index.php file for WordPress. Once the request gets there, WordPress looks at the domain and will decided what site it belongs to. Then it will show that site.

    Your domains are not reaching that index.php file (in the root of your WordPress installation) Once they are setup as addon domains, WHM can tell them to go to that folder.

    After you get all the domains moved over to that account, you will be double check the wildcard subdomains and ensure they are going to the correct IP.

    Best regards

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.