Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X: Part 1
Subject:   Localhost works, 127.0.0.1 does not?
Date:   2002-10-29 16:14:21
From:   anonymous2
When I try http://localhost my webpage is displayed. However when I try http://127.0.0.1 I get
(111) Connection refused
The same apllies when opening my user webpage:
http://localhost/~username/ works but http://127.0.0.1/~username/ does not. What gives?


HS.

Full Threads Newest First

Showing messages 1 through 4 of 4.

  • Localhost works, 127.0.0.1 does not?
    2002-11-07 05:26:50  anonymous2 [View]

    Me too, exactly the same thing. Does anybody have any suggestions on this one? Thanks.

    --c.
  • Localhost works, 127.0.0.1 does not?
    2003-01-28 10:53:40  smoore [View]

    If you use an http proxy then make sure that you've entered 127.0.0.1 in the "bypass proxy settings" edit box at the bottom of the "Proxies" tab in Network Preferences
    • Localhost works, 127.0.0.1 does not?
      2003-01-28 17:16:51  petemay [View]

      How does a proxy server get into the picture here? I thought that requests to the 'loopback' address of 127.0.0.1 didn't ever leave the network card (completely local). How is it that the proxy is causing this? Is this something that the administrator of the proxy can configure to change?
      And since 'localhost' resolves to 127.0.0.1, why does that address work?

      Thanks!
      PM
  • Localhost works, 127.0.0.1 does not?
    2003-08-11 22:47:55  anonymous2 [View]

    edit your httpd.conf file. replace all instances of localhost with 127.0.0.1
    i needed to do this to allow cookies to be set properly and referrer as well for dev purposes. loacalhost will no longer be recongnized but for my purposes i never use localhost anyway.
    hth
    regards,
    dan