The MU forums have moved to

subdomain not working.. (7 posts)

  1. altafr
    Posted 18 years ago #

    i read the exisitng posts, but still stumped for the last 5 hours. all is set. we got WPMU running and created the first user. the site URL looks like this http://altaf.rehmanis-imac-g5.local/mblog/

    where mblog is the wordpress directory and rehmanis-imac-g5.local is the sitename and user altaf is trying to access it. the server correctly tries to look for altaf.rehmanis-imac-g5.local and cannot find the site..

    Safari can’t open the page “http://altaf.rehmanis-imac-g5.local/mblog/wp-admin/� because it can’t find the server “altaf.rehmanis-imac-g5.local�.

    What should be the entry on my virtual Hosts section in http.confd

    this is where i am not clear ..

    currently it looks like this and i am sure this needs to be corrected.

    NameVirtualHost *
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for requests without a known
    # server name.
    <VirtualHost *>

    ServerAlias rehmanis-imac-g5.local *.rehmanis-imac-g5.local
    # DocumentRoot /www/docs/
    # ServerName
    # ErrorLog logs/
    # CustomLog logs/ common

    Any help appreciated.

  2. jaseone
    Posted 18 years ago #

    How exactly are you trying to set it up? So the outside world can see it? The .local suffix means that address is only available uniquely.

    You need to name your virtualhost in the <VirtualHost> tag and uncomment the other lines filling in your correct details to get that part working.

    Have you also setup wildcard dns? For that to work locally I think you need to edit your hosts file possibly adding an entry for each subdomain as I'm not sure if you can use wildcards in a hosts file.

    Plus I think you may be the first trying to install WPMU on OSX so you could be in for a bit of an adventure!

  3. altafr
    Posted 18 years ago #


    I am not trying to have this site visible from outside and fine to have this only on my machine to begin with.

    i am not sure where to look for the hosts file to capture the wildcard DNS ?

  4. jaseone
    Posted 18 years ago #

    Not sure on OSX, in most *nixes it is /etc/hosts but OSX moves stuff around, try googling it, there might even be instructions out there to setup wildcard dns on OSX.

  5. altafr
    Posted 18 years ago #

    what exact instrucitons do i need to follow to setup DNS wildcards ?

  6. jaseone
    Posted 18 years ago #

    You goto Google to find out if you can use wildcards in OSX's host file and how to do it, something like:

    osx hosts file wildcard should get you started with searching.

    For an actual server you need to edit your DNS zone and add I think it was a CNAME or maybe an A record for * but you're running it locally so you don't have such a DNS zone.

  7. spaceman
    Posted 18 years ago #

    Any luck with this???????

About this Topic