The MU forums have moved to WordPress.org

Domain mapping when WPMU is a vhost (2 posts)

  1. josswinn
    Member
    Posted 15 years ago #

    Hello,

    I'm trying to get Donncha's domain mapping plugin to work.

    Here's the set up:

    BuddyPress/WPMU 2.7 is installed in /var/www/vhosts/blogs with the domain: http://blogs.domain.com

    Relevant apache settings:

    IP Address: 123.456.789

    ServerName example.domain.com:80

    DocumentRoot "/var/www/html"

    NameVirtualHost *:80

    <VirtualHost *:80>
    ServerName blogs.domain.com
    ServerAlias blogs.domain.com *.blogs.domain.com
    DocumentRoot /var/www/vhosts/blogs
    </VirtualHost>

    So you can see that my default ServerName is not the same as my WPMU/BuddyPress install.

    Is this why domain mapping is not working for me? Does WPMU have to be installed in the default root directory rather than as a vhost?

    I have the domain name http://blogs.dept.example.com which is pointing to the IP address 123.456.789 but the page it shows is a 404 on example.domain.com rather than mapping to http://site.blogs.domain.com

    Confused? I am!

    Thanks for any advice.
    Joss

  2. andrea_r
    Moderator
    Posted 15 years ago #

    Don't point it to the IP address, point it to the installed domain using a CNAME record. :)

    By using the IP address, you're sending requests directly to example.domain.com.

    "Does WPMU have to be installed in the default root directory rather than as a vhost?"

    Nope. Each vhost is pretty specific.

    (observers note: this root directory is not the same as the public_html root)

About this Topic

  • Started 15 years ago by josswinn
  • Latest reply from andrea_r