Multisite Domain Mapping to Internal Server only
-
Hi,
I’ve attempted googling for the answer over a couple days and now I have resorted that I am a special situation, so hopefully someone can help!Here is some background info:
I have a Linux server running Apache/2.2.3 (CentOS) PHP Version 5.3.9I am able to add sites to my network, but it displays: You have 0 sites and 0 users. If I view all sites, I have my root site and 2 other sites. So that is one issue.
The other issue is that what is hosted on this server is not “live” technically. I can view it internally by editing the hosts file on my local machine. I am able to view a separate install of wordpress that is on the same server, using a single database with a different prefix within our network only.
After getting multisite up and running, seems like it is running fine, now I want to test and make sure that sub directory domain mapping is going to work, before I go and take the time to edit the site to the way I want.
I installed the “WordPress MU Domain Mapping” plugin, got that up and running. Put my server’s IP address in the Domain Settings and these 3 items are checkmarked:
– Permanent redirect (better for your blogger’s pagerank)
– User domain mapping page
– Redirect administration pages to site’s original domain (remote login disabled if this redirect is disabled)I went to map my domains, I put in the site id and the fake URL I want the site to take on once live. I figured I can edit the hosts file to view the site via the fake URL, is this a correct assumption?
I then found out through googling that I need to edit the httpd.conf file to allow for virtual hosts, but WP doesn’t seem to create a new sub folder when adding a new site, so I wasn’t sure how to edit this file, this is what I would think it should be…
# Ensure that Apache listens on port 80
Listen 80# Listen for virtual host requests on all IP addresses
NameVirtualHost ##.#.#.###:80<VirtualHost ##.#.#.###:80>
DocumentRoot /var/www/public_html
ServerName blog.site.com# Other directives here
</VirtualHost>
<VirtualHost ##.#.#.###:80>
DocumentRoot /var/www/public_html/testsite
ServerName ##.#.#.###/testsite# Other directives here
</VirtualHost>
So should this work for domains that are not live? So I can make sure they work prior to going live?
sorry for the long post, but just wanted to make sure all info was given…any help you guys can provide would be great! thank you!
- The topic ‘Multisite Domain Mapping to Internal Server only’ is closed to new replies.