Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X: Part 1
Subject:   me too : Cannot access username via the http://127.0.0.1/~username/
Date:   2002-02-01 06:56:24
From:   morbus
Response to: me too : Cannot access username via the http://127.0.0.1/~username/

The ServerName directive, as described from the Apache documentation: "The ServerName directive sets the hostname of the server; this is used when creating redirection URLs. If it is not specified, then the server attempts to deduce it from its own IP address; however this may not work reliably, or may not return the preferred hostname."


http://httpd.apache.org/docs/mod/core.html#servername


Basically, since Apache isn't getting a name, it's guessing at one, and choosing the 127.0.0.1 address, as you see in the message you copied for me. If your OS X machine has an IP address on your network, then you should use THAT as the URL to try and get to from your OS 8 machine.


When you try to get to 127 on your OS 8 machine, you're, in essence, saying "hey! I have a server on this OS 8 machine! use it!". Since that's not the case, you've got to say "hey! I have a server on my OS X machine, which is called 192.168.176.22 (example)! use it!".

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • me too : Cannot access username via the http://127.0.0.1/~username/
    2002-02-03 22:54:40  francis_st-laurent [View]

    80.9.14.211 - - [02/Feb/2002:12:31:33 +0100] "GET /~fderive/ HTTP/1.1" 200 6186
    80.9.14.211 - - [02/Feb/2002:12:31:34 +0100] "GET /~fderive/images/macosxlogo.gif HTTP/1.1" 200 2829
    80.9.14.211 - - [02/Feb/2002:12:31:34 +0100] "GET /~fderive/images/apache_pb.gif HTTP/1.1" 200 2326
    80.9.14.211 - - [02/Feb/2002:12:31:34 +0100] "GET /~fderive/images/web_share.gif HTTP/1.1" 200 13370
    80.9.14.211 - - [02/Feb/2002:12:35:03 +0100] "GET /manual/ HTTP/1.1" 200 5556
    80.9.14.211 - - [02/Feb/2002:12:35:05 +0100] "GET /manual/images/apache_header.gif HTTP/1.1" 200 4084
    80.9.14.211 - - [02/Feb/2002:12:35:05 +0100] "GET /manual/images/pixel.gif HTTP/1.1" 200 61
    80.9.14.211 - - [02/Feb/2002:12:52:49 +0100] "GET /~fderive/ HTTP/1.1" 304 -
    80.9.14.211 - - [02/Feb/2002:12:52:50 +0100] "GET /~fderive/images/web_share.gif HTTP/1.1" 304 -
    80.9.14.211 - - [02/Feb/2002:12:52:52 +0100] "GET /~fderive/images/macosxlogo.gif HTTP/1.1" 304 -
    80.9.14.210 - - [02/Feb/2002:13:40:17 +0100] "GET /~fderive/ HTTP/1.1" 200 6186
    80.9.14.210 - - [02/Feb/2002:13:40:18 +0100] "GET /~fderive/images/macosxlogo.gif HTTP/1.1" 200 2829
    80.9.14.210 - - [02/Feb/2002:13:40:19 +0100] "GET /~fderive/images/apache_pb.gif HTTP/1.1" 200 2326
    80.9.14.210 - - [02/Feb/2002:13:40:19 +0100] "GET /~fderive/images/web_share.gif HTTP/1.1" 200 13370
    80.9.14.210 - - [02/Feb/2002:14:10:50 +0100] "GET /~fderive/ HTTP/1.1" 304 -
    80.9.14.210 - - [02/Feb/2002:14:20:58 +0100] "GET /~fderive/ HTTP/1.1" 304 -
    80.9.14.210 - - [02/Feb/2002:14:31:26 +0100] "GET /~fderive/ HTTP/1.1" 304 -

    Hello !

    Any comment ?

    I had forgotten I had played with a little ethernet network for which I had these Mac 0S 8.1 machines 211 and 210, the latter having an ISDN Sharing connexion to the internet.

    You see everything is OK now - I *do* understand more the addressing matter !

    Machines 211 and 210 can connect to 212 - not shown - which is Mac OS X machine with the Apache server.

    I think I started with the address I found on the 210 machine and then I installed the same "80.9.14" on the Mac OS X machine, making it different with the last number.

    Now, the Mac Os X network prefs lives with TCP/IP "Manually" - having 80.9.14.210 as Router -, or "Manually using DHCP router", in that case the address of the router is found automatically - I guess -.

    That leaves other network *basic* questions...

    For no rest, I checked I could connect to the Internet from 210 and 211 through 210, but did not succeeded from the 212 Mac OS X machine. That is not an Apache question.

    I appreciated a lot the quality of your chirurgical explanation.

    Merci beaucoup.