Closed Bug 50929 Opened 26 years ago Closed 25 years ago

"localhost" doesn't work -- freeze when trying to use search.netscape.com

Categories

(Core :: Networking, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED WORKSFORME
mozilla0.9.1

People

(Reporter: burnus, Assigned: gordon)

Details

(Whiteboard: [nsbeta3-][DNS])

Hi this is with 2000-08-31-08 under Linux If I enter localhost or http://localhost/, mozilla shows the line http://search.netscape.com/....=localhost and freezes. A test shows: Document http://127.0.0.1/ loaded successfully Document http://burnus/ loaded successfully Error loading URL http://localhost/: 804b000d Using localhost as newsserver I get connection refused, using "burnus" as server it works. This worked a while ago, I haven't tried the other options from /etc/hosts. We had similar problems before: 31335, 47808, 47999, but none of them fits so good that I could reopen.
this is a bad regression.
Keywords: nsbeta3
Whiteboard: [nsbeta3+]
per PDT: P3-P5 priority bugs changed from nsbeta3+ to nsbeta3- since we have more important work to do for Seamonkey. If you disagree, please state your case in the bug report and nominate for rtm and adjust priority if this bug was mis-prioritized. Thanks. (How common is it to use "localhost"?)
Whiteboard: [nsbeta3+] → [nsbeta3-]
> (How common is it to use "localhost"?) On Unix system it is not uncommon to use for documentation or "intranet" (if you use *the* server via XTerminals). For SuSE Linux systems the default page is "http://localhost/" and provides documentation of the system. Usage three: For testing of HTML pages/CGI scripts, localhost is frequently. (And not everone knows the workaround to use the `hostname` (command). If this cannot be fixed in Netscape 6, it should be in the release notes so you know the workaround.
->WORKSFORME (Linux build 2000100909)
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
Using 2000-10-09-21/Linux (Mozilla nightly) I see this: a) http://localhost/ and localhost both produce: "The connection was refused when attempting to contect localhost." b) Using http://localhost./ works (note the '.') nslookup shows: ~> nslookup localhost Name: localhost.ddns.org Address: 127.0.0.1 ~>nslookup localhost. Name: localhost Address: 127.0.0.1 c) Using the hostname (foo) and hostname (foo.) the access works ok. (same result with nslookup, in /etc/hosts both entries can be found) d) If I enable internetkeywords and enter localhost or http://localhost/ (!!!) im directed to the netscape keyword page. (using foo, foo., localhost. it works ok) e) If internet keywords are enabled and I load "localhost." I get this odd result: The SuSE documentation page loads such frames: http://localhost/doc/susetour/de/ctrl.html which contain the 'localhost'. Mozilla doesn't report the "connection was refused" (as with disabled keywords), but loads the keyword site!!!!!
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Changing serverity to normal since Mozilla doesn't crash anymore.
Severity: critical → normal
->gordon
Assignee: gagan → gordon
Status: REOPENED → NEW
This works for me with the 2000-10-13-09 nightly Linux build. My /etc/hosts file just contains: 127.0.0.1 localhost.localdomain localhost http://localhost./ reports it cannont be found, which is what I expected. I'm wondering why we seem to have this discrepancy in behavior from what Tobias has reported. Tobias, are you still seeing this?
2000-10-13-21-Mtrunk/i686-pc-linux-gnu (LANG=de_DE.ISO-8859-1) In my /etc/hosts: | 127.0.0.1 localhost.ddns.org localhost | ::1 localhost ipv6-localhost ipv6-loopback In /etc/nsswitch.conf | hosts: files dns In /etc/named.conf |zone "localhost" IN { This is the reason that nslookup localhost. works. If I disable my local bind-8 server [-> request to the secondary server] ("nslookup localhost" shows nothing, but using "localhost." it shows 127.0.0.1. (DNS: cache02.ns.de.uu.net)) I get the very same result: localhost (instantly) Connection refused, localhost. shows (after a while) the html page.
Version: 2000-10-18-??-Mtrunk, win32 BuildID: 2000101820 This is appearing in Win32 as well now. The following is my test cases (which all work fine in IE and NS 4.5: 1. http://localhost/ --> works (as do /default.asp and default2.asp) 2. http://localhost/merchantpages/ --> "The connection was refused when attempting to contact localhost". 3. http://localhost/merchantpages/default.asp --> "The connection was refused when attempting to contact localhost". 4. http://<machinename>/ --> works (as do default.asp and default2.asp) 5. http://<machinename>/merchantpages/ --> same as #2 6. http://<machinename>/merchantpages/default.asp --> same as #2 7. http://<machinename>/merchantpages/default2.asp --> HTTP 404 (correct) 8. https://<machinename>|localhost/ --> same as #2 9. https://<machinename>/merchantpages/ --> same as #2 From the web server logs: 14:39:08 172.16.2.85 - GET /merchantpages/merchantlogon.asp - 200 2854 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SITESERVER=ID=4a54a0ecde473659b9153633abfaf00b;+SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44 - 14:39:57 172.16.2.85 - GET /merchantpages/Default.asp - 302 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:40:08 127.0.0.1 - GET /merchantpages/Default.asp - 302 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 - - 14:40:19 172.16.2.85 - GET /merchantpages/Default.asp - 302 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 - - 14:48:37 127.0.0.1 - GET /Default.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=cff7132daf2919a012901f3ced6c8a94 - 14:48:37 127.0.0.1 - GET /Default.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=cff7132daf2919a012901f3ced6c8a94 - 14:48:56 127.0.0.1 - GET /default.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=cff7132daf2919a012901f3ced6c8a94 - 14:48:56 127.0.0.1 - GET /default.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=cff7132daf2919a012901f3ced6c8a94 - 14:49:00 127.0.0.1 - GET /default2.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=cff7132daf2919a012901f3ced6c8a94 - 14:49:00 127.0.0.1 - GET /default2.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=cff7132daf2919a012901f3ced6c8a94 - 14:49:28 127.0.0.1 - GET /merchantpages/Default.asp - 302 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=cff7132daf2919a012901f3ced6c8a94 - 14:50:13 127.0.0.1 - GET /merchantpages/default.asp - 302 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=cff7132daf2919a012901f3ced6c8a94 - 14:50:59 172.16.2.85 - GET /merchantpages/Default.asp - 302 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:51:04 172.16.2.85 - GET /Default.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:51:04 172.16.2.85 - GET /Default.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m17)+Gecko/20000807 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:51:09 172.16.2.85 - GET /default.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:51:09 172.16.2.85 - GET /default.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:51:12 172.16.2.85 - GET /default2.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:51:12 172.16.2.85 - GET /default2.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:51:18 172.16.2.85 - GET /merchantpages/Default.asp - 302 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:51:24 172.16.2.85 - GET /merchantpages/default2.asp - 404 623 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:51:27 172.16.2.85 - GET /merchantpages/default.asp - 302 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:52:45 172.16.2.85 - GET /merchantpages/default.asp. - 404 623 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:52:53 172.16.2.85 - GET /merchantpages/ - 302 294 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:52:53 172.16.2.85 - GET /merchantpages/Default.asp - 302 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=7bf41395782626312c9812c74e45a010 - 14:54:30 127.0.0.1 - GET /Default.asp - 200 0 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44;+SITESERVER=ID=cff7132daf2919a012901f3ced6c8a94 - 14:56:58 172.16.2.85 - GET /Default.asp - 200 3983 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SITESERVER=ID=4a54a0ecde473659b9153633abfaf00b;+SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44 - 14:57:03 172.16.2.85 - GET /default2.asp - 200 753 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SITESERVER=ID=4a54a0ecde473659b9153633abfaf00b;+SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44 - 15:02:25 172.16.2.85 - GET /default2.asp - 200 753 Mozilla/5.0+(Windows;+U;+WinNT4.0;+en-US;+m18)+Gecko/20001018 SITESERVER=ID=4a54a0ecde473659b9153633abfaf00b;+SessionID=ZTUKK2A24ZBO63N96C9NS2BVQKWXJK44 - Not sure what is causing this, but it appears to me that the page is actually being requested (because of the web server log entries), but that the pages aren't being displayed for some reason... Thanks.
Target Milestone: --- → mozilla0.9.1
Using 2001031220 on Win98. My employer uses a proxy server for outgoing web requests. I have an SSH connection to my home machine forwarding port 80 -- I should be able to do http://localhost/ and get / from the home machine over SSH. Instead, I get a connection refused error generated by *the proxy server*.
Hmm, ignore that. Setting "No Proxy For: localhost" works as I'd expect.
Whiteboard: [nsbeta3-] → [nsbeta3-][DNS]
works for me with 20001050208 Please retry with a newer build.
Status: NEW → RESOLVED
Closed: 26 years ago → 25 years ago
Resolution: --- → WORKSFORME
Hmm. I tried with Mozilla 0.9 (and older config files as I have to admit) and if I try to connect to http://localhost, it seems to try to connect to the DNS server. (This is with a offline laptop configured for an intranet.) "localhost" *does* work with NS4 etc. Any things which I should test to get a better description? Note: I think I have internetkeywords etc. disabled so that Moz doesn't try to reach search.netscape.com.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I dont see this connecting to any server. My 'localhost' resolves much earliar. Marking as WORKSFORME.
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → WORKSFORME
verified wfm - linux rh6 2001061308
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.