This works of course -- we give the browser the actual ip address. but it still doesn't explain the fact that some browsers search for localhost remotely. Avi --On Monday, February 05, 2001 01:29:15 AM +0100 filip <vhf@skynet.be> wrote:
Le Dimanche 4 Février 2001 22:38, juergen.braukmann@ruhr-west.de a écrit :
Avi Schwartz wrote:
I was always under the impression that localhost is a special address that should be recognized as the local machine. My /etc/hosts file has the following entry:
127.0.0.1 localhost
Yet, when I tried to connect to the local web server as in http://localhost/php/navigator.php , different browsers behave
try http://127.0.0.1/php/navigator.php
differently:
Netscape: OK, Connects to local web server. Konqueror: OK, connects to local web server. Opera: Failed. Displays a dialog saying that the address is not available from this machine. Mozilla: Failed, displays the Netscape search page. Galeon: Failed, displays the Netscape search page. No surprise here: galeon is using mozilla. Lynx: OK, connects to local web server.
So what is the story here? Are some browsers using a different resolver then others, or is there something wrong with my hosts file and the only reason that some browsers work as expected is that they recognize localhost to be a special address?
Another wierd thing here: connecting from my hpux box to my webserver (linux) with netscape displays a "correct" address in the address field, but connects to www.localhost.com. I think this is some (yet) unrecognised dns issue / setup problem on hpux. Same if I use ip addresses. But it could be apache as well. Need to enquire that more. Not enough browsers to test your case. ;-( But interested in the outcome.
Juergen
-- Avi Schwartz Get a Life, avi@CFFtechnologies.com Get Linux!