• surina777

    (@surina777)


    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.9

    I 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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    WP doesn’t seem to create a new sub folder when adding a new site

    That is correct, it’s all VIRTUAL.

    Your VHOSTS should point back to /var/www/public_html/

    Thread Starter surina777

    (@surina777)

    Thanks Ipstenu,
    So does that mean I create a vhost entry for every site? Then to test locally on my machine, before the site goes live, I modify my hosts file to:
    ##.#.#.### blog.site.com
    ##.#.#.### testsite.com
    ##.#.#.### testsite2.com

    VHOSTS Ex:

    # 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
    ServerName testsite.com

    # Other directives here

    </VirtualHost>

    </VirtualHost>

    <VirtualHost ##.#.#.###:80>
    DocumentRoot /var/www/public_html
    ServerName testsite2.com

    # Other directives here

    </VirtualHost>

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I … want to say yes, but I don’t do all that much with my vhosts locally. hosts file, yes, you edit like that.

    Thread Starter surina777

    (@surina777)

    Are you saying you don’t have to do anything with vhosts to test locally?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    That is correct. I set up MAMP out of the box, and just added in ##.#.#.### ipstenu.loc to my hosts file.

    Thread Starter surina777

    (@surina777)

    This is on a linux server that I want to test before going live. Is it necessary to use MAMP/LAMP?

    ##.#.#.###/nonmultisitewpinstall (<–full wordpress install) works on the internal network without requiring a hosts file edit, I can share that address with anyone on the network and the site is visible

    ##.#.#.##/multisitename does not work on the network

    I want to make sure ##.#.#.## works before I go into the DNS to update the location of the site

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multisite Domain Mapping to Internal Server only’ is closed to new replies.