Results 1 to 3 of 3

Thread: Localhost no longer goes to local server

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Beans
    23
    Distro
    Ubuntu 11.04 Natty Narwhal

    Unhappy Localhost no longer goes to local server

    When I type in http://localhost/ I get the Page Cannot Be Found error. However, when I type in my computer name, which in this case would be http://jacob-laptop/, I get my server. How could I get localhost to reach it again?

  2. #2
    Join Date
    Apr 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Localhost no longer goes to local server

    Did you change anything in your Apache settings, or in your firewall settings?

    Probably http://jacob-laptop/ points to your internal IP-address, where localhost should point at 127.0.0.1

    You can also examine the contents of your /etc/hosts file.

  3. #3
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Localhost no longer goes to local server

    Quote Originally Posted by new_tolinux View Post
    ...where localhost should point at 127.0.0.1

    You can also examine the contents of your /etc/hosts file.
    +1
    127.0.0.1 frequently gets edited to hostname. I prefer to leave localhost as 127.0.0.1 and "alias" hostnames via 127.0.1.1.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

Tags for this Thread

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
  •