Results 1 to 3 of 3

Thread: Apache localhost names

  1. #1
    Join Date
    Jan 2005
    Location
    Netherlands
    Beans
    76
    Distro
    Ubuntu 12.04 Precise Pangolin

    Apache localhost names

    Hi

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

    Code:
    127.0.0.1     localhost
    127.0.1.1     myserverbla
    Now on a Windows PC in my network I can just type http://myserverbla/ but on my Macbook Pro it can't find the server. If I type http://192.168.1.10/ it can find it. How can I let the Mac also find it, or does one in general assign local host or domainnames?

  2. #2
    Join Date
    Oct 2007
    Location
    Belgium
    Beans
    146
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Apache localhost names

    you should also let your MAC know that http://myserverbla has the IP address (192.168.1.10).
    you should edit your "hosts" file on your MAC aswell
    192.168.1.10 myserverbla

    (I don't know where you should do this on a MAC though)

  3. #3
    Join Date
    Jan 2005
    Location
    Netherlands
    Beans
    76
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Apache localhost names

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

    Code:
    192.168.1.10 myserverbla
    and now it works.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •