1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Localhost confused about IP address

Discussion in 'Apache' started by Cysten, Mar 26, 2013.

  1. #1
    So I have this problem. I am trying to set up a test server in my room. It is connected to the internet through an ethernet cable to a router to a cable modem.

    I downloaded the LAMP stack with Ubuntu. Everything is great except that I can't get apache to respect and obey me. Apache accepts my DocumentRoot, acknowledges it, but then refuses to actually implement it. It still continues to server files from /var/www which is the default directory.

    The serverName is localhost.
    The directory directives are set right, and server permissions.
    The error log shows no errors.

    Ok so now localhost is always supposed to be 127.0.0.1. I set the listeners to that. 80, 443.
    Whereas before localhost worked, now it doesn't. So I went and changed the IP to my own computers IP.
    Lo and behold localhost now seems to work.

    Localhost always should be 127.0.0.1. I was wondering if this kind of mix up is connected to my root problem. Anybody seen something like this?
     
    Cysten, Mar 26, 2013 IP
  2. Cysten

    Cysten Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    The localhost is now on the right IP. Anybody know anything about apache refusing to map an accepted root directory, it would be appreciated.
     
    Cysten, Mar 28, 2013 IP
  3. fetal

    fetal Member

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Please post your apache config, also the output of iptables -nL
     
    fetal, Apr 2, 2013 IP
  4. Cysten

    Cysten Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #4
    Ok the localhost just started working again. The problem is that the Ubuntu apache is different from the standard apache, but they don't make that clear in both ubuntu's and apache's site.
     
    Cysten, Apr 4, 2013 IP