WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
[resolved] Mapping domain.vic.gov.au/somepath to a MU site ID (5 posts)

  1. nick.mcelligott
    Member
    Posted 10 months ago #

    Hey,

    I’m wondering if anyone can help me, or point me in a direction…
    I’m trying to http://www.mydomain.com/somepath1 to a site in my MU setup using the Domain Mapping plugin.

    I’ve set the the mapping so that;
    domain.vic.gov.au
    domain.vic.gov.au/somepath
    http://www.domain.vic.gov.au
    http://www.domain.vic.gov.au/somepath

    are all mapped to the correct site ID. I’ve got the owners of the domain to point domain.vic.gov.au/somepath to the server IP.

    However, when I go to the URL domain.vic.gov.au/somepath I get routed to my servers default WPMU site.

    Any clues at all? Thanks for such a great plugin!

    http://wordpress.org/plugins/wordpress-mu-domain-mapping/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 10 months ago #

    Domain mapping is for mapping domains vs mapping domains & paths. Due to the way DNS works you cannot direct paths to a site.

    For what you are trying to do you need to use something like squid or varnish to front end the path and use a WP install to be the back end.

  3. nick.mcelligott
    Member
    Posted 10 months ago #

    Hi Ron,

    Thanks for your quick response.

    I think I will look into setting up Varnish, or nginx, as I'm using Bitnami and it looks relatively easy to setup.

    Do you have much experience with these tools? It seems for nginx I can use the map module.

    Thanks again Ron.

    Cheers,

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 10 months ago #

    I'm in process of migrating to my third nginx server. The previous two had 2 - 2 1/2 years each.

    If you work through the process of setting http://wordpress.org/plugins/network-nginx-proxy-cache-purge/ up, then you could direct a specific folder to a different upstream provider.

  5. nick.mcelligott
    Member
    Posted 10 months ago #

    Ron,

    Thanks again for the quick response. Yep, I've looked at that link already and it will probably be my next port of call.

    I'm a bit confused though. If I go to the URL somedomain.vic.gov.au/somepath, this is routed to my MU server.

    Couldn't I just check to see if $_SERVER[ 'HTTP_HOST' ] is somedomain, and if so route that to myblog.myMU.com ?

    Really appreciate you time,

    Cheers.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.