The MU forums have moved to WordPress.org

hosting multiple domain names - with subdomains (3 posts)

  1. unomateo
    Member
    Posted 18 years ago #

    linux server, whm, cpanel, and I have access to httpd.conf

    Here is what I have done:

    wpmu installed on domain1.com, using subdomains.
    added server alias "domain2.com *.domain2.com" to domain1 virtual host in the httpd.conf

    added domain2.com to wp_site table

    duplicated the sitemeta from domain1 and updated the site_id to domain2.com wp_site id

    update the site_id for a blog in wp_blog table (blog.domain1.com) to domain2.com. I also updated all the site names for that blog in the wp_x_options so they all say domain2.com, instead of blog.domain1.com

    This works, I am able to access the admin section for both domain1.com and domain2.com

    The problem I have is when I create a new blog with domain2.com. The blog gets created but it gives a server not found error when trying to access it...but I see the blog in the database, and in the admin section for domain2.com

    I can make blogs on domain1.com with no errors.

    does anyone know what I did wrong?

  2. unomateo
    Member
    Posted 18 years ago #

    I'm pretty sure the problem is with the wildcard settings for domain2.com "*.domain2.com"

    I cannot get that to work.

    so when I try to hit test.domain2.com it errors...

    is there a way to set the wildcard for domain2.com using WHM?

  3. lunabyte
    Member
    Posted 18 years ago #

    Gotta have a DNS entry for it as an A record. So yeah, you need to add it in whm so that bind gets updated.

About this Topic

  • Started 18 years ago by unomateo
  • Latest reply from lunabyte