Thread Starter
vidkun
(@vidkun)
It wouldn’t let me edit the original, but just to clarify a little more. Each domain is to be a completely separate site with it’s own theme, content, comments, signup/registration, etc. And the users should never be presented with anything resembling an admin site or main site admin page/site.
Preferrably (but not vital), each site would be contained within it’s own directory on the server itself. For example: /var/www/sites/abc.com and then /var/www/sites/xyz.com
If you want each sit ewith its own directory on the server, why not use multipel installs?
In MU, there’s one codebase, ONE set of files. Multiple blogs are virtual, regardless of domain names.
This plugin does what you want:
http://ww.wp.xz.cn/extend/plugins/wordpress-mu-domain-mapping/
Thread Starter
vidkun
(@vidkun)
That was the plugin I was originally looking at. So I did a reinstall of MU and installed both that plugin and the multi-site plugin. The MU site comes up when I go to abc.com/wpmu.
Directories are set up under /var/www/sites/ as wpmu, abc.com, and xyz.com. wpmu site is configured with an alias as such:
Alias /wpmu /var/www/sites/wpmu
This is where MU was extracted to and installed. There is nothing in the abc.com and xyz.com directories.
I mapped two of my domains (abc.com and xyz.com) to the server IP with the domain-mapping plugin. Each domain has an A record pointing to the server’s IP address. I also created a new site (xyz.com) in the multi-site plugin and for path pointed it to /xyz.com (thinking that it was from the root of apache /var/www/sites, does that need the full path in there?).
If I go to abc.com/wpmu, I get the MU front page. If I go to abc.com I get a standard apache 404 not found. If I go to xyz.com I get the same apache 404. If I go to xyz.com/wpmu, I get a different 404 not found that is wrapped in what looks like it should be a wordpress page with the xyz.com site/blog title, search box, archives, pages, categories, and footer.
So obviously I’m doing something a little bit wrong here. Any guidance would be greatly appreciated it.
I want to be able to go to abc.com and have the abc.com site. Then go to xyz.com and have a completely different/separate site for xyz.com. And then only get to the MU page by going to either abc.com/wpmu or xyz.com/wpmu. I also will be restricting that so that only I can get to it so that users don’t stumble across it.
I would prefer to do this all with one codebase and set of files. This is obviously optimal. I just am not sure if this is possible this way. Or will I have to do it through multiple instances of WP? If MU can’t do this and individual WP installs is required, does that require that each site has its own directory on the server with its own copy of the WP files? Or would WP-Hive or something similar be able to achieve this without having multiple copies of the WP files?
Thanks again!
Thread Starter
vidkun
(@vidkun)
Hmmm so I’ve made a little more progress. Above, the default site was the wpmu site and that pointed to /var/www/sites/wpmu, had an alias for /wpmu to that directory, and gave me the MU main site admin page when i went to abc.com/wpmu.
The only thing I have changed from the above is this:
-I created two new virtual hosts under sites-available; abc.com and xyz.com where I put in the sitename, sitealias, and pointed docroot to the same /var/www/sites/wpmu directory.
-a2ensite both of those files
-reload apache
-go into multi-site page and change the /wpmu for abc.com site and the /xyz.com for xyz.com site both to just /
Now if i go to xyz.com it appears to give me the proper xyz.com site that i created instead of any sort of 404. If i go to abc.com, instead of a 404, I now get the main MU front page. I can now log into as the site admin at xyz.com, but I can no longer login at abc.com and get a 500 error instead when I try to click on anything other than login. Login brings up the login page, but entering credentials and submitting simply seems to refresh the page without any errors.
I’m getting there, but again, any help is appreciated. Thanks!
“The MU site comes up when I go to abc.com/wpmu”
You can;t have MU in a folder & domain map it or multi-site it without the folder name.
also, please visit the MU forums:
http://mu.ww.wp.xz.cn/forums/view/all-topics
There are dozens of threads on this subject and a ton of more help.