WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Mapping domain.vic.gov.au/somepath to a MU site ID

[Resolved] Mapping domain.vic.gov.au/somepath to a MU site ID

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ron Rennick

    @wpmuguru

    MultiSite Guru

    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.

    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,

    Plugin Author Ron Rennick

    @wpmuguru

    MultiSite Guru

    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.

    nick.mcelligott

    @nickmcelligott

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Mapping domain.vic.gov.au/somepath to a MU site ID’ is closed to new replies.