1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Apache localhost name and macbook

Discussion in 'Web Design and Development' started by Zillion, Feb 4, 2009.

  1. macrumors member


    I have Apache running on a small Ubuntu server in my home network. In /etc/hosts it says :

    Code:     localhost     myserver 
    Now on a PC in my network I can just type http://myserver/ but on my Macbook Pro it can't find the server. If I type it can find it. How can I let the Mac also find it?
  2. Moderator emeritus


    Were you editing the etc/hosts on Ubuntu, or on the Mac. It needs to be done in both places. Also, I think you have a typo in the etc/hosts you provided, the extra '1' on the second line.
  3. macrumors regular



    The is fine, but you need to add your Ubuntu server to your Mac's hosts file.
    There are some other modifications that you may want to make. Have a look here
  4. macrumors member

    Thanks. I added in /etc/hosts on the Macbook

    Code: myserver
    and now it works. :)

Share This Page