You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by innocent <in...@tauraizimbabwe.com> on 2003/11/28 10:59:15 UTC

[users@httpd] Newbe::localhost and 127.0.0.1

I have just installed apache Http Server ver 1.3.28 on a win 98SE. My problem 
is that when start the server and then my browser and type http://localhost I 
am getting this error msge::

Connection Failed 
The system returned: 
(111) Connection refused

but when I use 127.0.0.1 everythings works fine

please help


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbe::localhost and 127.0.0.1

Posted by Robert Andersson <ro...@profundis.nu>.
Schalk wrote:
> You have to add the port number for example: http://localhost:4000/

What good do you propose that would do? Unless he isn't running on port 80,
which he obviously is doing.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Newbe::localhost and 127.0.0.1

Posted by Schalk <sc...@volume4.co.za>.
You have to add the port number for example: http://localhost:4000/

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:schalk@volume4.co.za
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -----Original Message-----
:: From: Robert Andersson [mailto:robert@profundis.nu]
:: Sent: Friday, November 28, 2003 12:08 PM
:: To: users@httpd.apache.org
:: Subject: Re: [users@httpd] Newbe::localhost and 127.0.0.1
:: 
:: [Don't start a new subject by replying another]
:: 
:: innocent wrote:
:: > I have just installed apache Http Server ver 1.3.28 on a win 98SE. My
:: > problem is that when start the server and then my browser and type
:: > http://localhost I am getting this error msge::
:: >
:: > Connection Failed
:: > The system returned:
:: > (111) Connection refused
:: >
:: > but when I use 127.0.0.1 everythings works fine
:: 
:: I've seen this "problem" around, and actually "suffer" it currently on
one
:: machine, but I haven't cared enough to look into it.
:: 
:: Either it is because "localhost" doesn't resolve to 127.0.0.1, but unless
:: you messed with I cannot see why it wouldn't, or it could be related to
what
:: interface(s) you have told Apache to listen to.
:: 
:: I saw Barbara Post's reply, and if I remember correctly, this file might
be
:: named "HOSTS.SAM" which you need to rename to simply "HOSTS".
:: 
:: Regards,
:: Robert Andersson
:: 
:: 
:: ---------------------------------------------------------------------
:: The official User-To-User support forum of the Apache HTTP Server
Project.
:: See <URL:http://httpd.apache.org/userslist.html> for more info.
:: To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
::    "   from the digest: users-digest-unsubscribe@httpd.apache.org
:: For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbe::localhost and 127.0.0.1

Posted by Robert Andersson <ro...@profundis.nu>.
[Don't start a new subject by replying another]

innocent wrote:
> I have just installed apache Http Server ver 1.3.28 on a win 98SE. My
> problem is that when start the server and then my browser and type
> http://localhost I am getting this error msge::
>
> Connection Failed
> The system returned:
> (111) Connection refused
>
> but when I use 127.0.0.1 everythings works fine

I've seen this "problem" around, and actually "suffer" it currently on one
machine, but I haven't cared enough to look into it.

Either it is because "localhost" doesn't resolve to 127.0.0.1, but unless
you messed with I cannot see why it wouldn't, or it could be related to what
interface(s) you have told Apache to listen to.

I saw Barbara Post's reply, and if I remember correctly, this file might be
named "HOSTS.SAM" which you need to rename to simply "HOSTS".

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Newbe::localhost and 127.0.0.1

Posted by Jonathan Mangin <jo...@comcast.net>.
The file should be named hosts (no extension).


----- Original Message -----
From: "innocent" <in...@tauraizimbabwe.com>
To: <us...@httpd.apache.org>
Sent: Saturday, November 29, 2003 9:00 AM
Subject: [users@httpd] Re: Newbe::localhost and 127.0.0.1


> Thanks to all who responded
>
> But my problem have not yet been resolved yet.
>
> In this folder >> C:\WINDOWS\SYSTEM32\DRIVERS I don't have the /etc/
folder
> in it. My Hosts.sam file is stored in the WINDOWS directory and it have
the
> required entry
>
> 127.0.0.1    localhost
>
> but when I typed the http://localhost it is not resolving to 127.0.0.1 it
> still got the following error
>
> Connection Failed
> The system returned:
> (111) Connection refused
>
> what will be wrong with my system
>
>
> please help
>
> Thanks in advance
>
>
> > I have just installed apache Http Server ver 1.3.28 on a win 98SE.
> > My problem is that when start the server and then my browser and
> > type http://localhost I am getting this error msge::
> >
> > Connection Failed
> > The system returned:
> > (111) Connection refused
> >
> > but when I use 127.0.0.1 everythings works fine
> >
> > please help
>
>
> --
> Taurai Mail (http://www.taurai.co.zw)
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Newbe::localhost and 127.0.0.1

Posted by Robert Andersson <ro...@profundis.nu>.
innocent wrote:
> In this folder >> C:\WINDOWS\SYSTEM32\DRIVERS I don't have
> the /etc/ folder in it. My Hosts.sam file is stored in the WINDOWS
> directory and it have the required entry
>
> 127.0.0.1    localhost

The ".sam" means "sample" (according to previous discussion on this list),
so it isn't "active" until you rename it to just "hosts".

I'm not too good on Windows 9x/ME, but I don't think that this is your
problem. If the problem would have been related to this file, it would be
because this files already was "active" and didn't specify localhost, or
gave it the wrong IP.

You may be able to get around it, by correctly configure the hosts file, but
there is still something wrong in there. I cannot say what, though.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Newbe::localhost and 127.0.0.1

Posted by innocent <in...@tauraizimbabwe.com>.
Thanks to all who responded

But my problem have not yet been resolved yet.

In this folder >> C:\WINDOWS\SYSTEM32\DRIVERS I don't have the /etc/ folder 
in it. My Hosts.sam file is stored in the WINDOWS directory and it have the 
required entry

127.0.0.1    localhost

but when I typed the http://localhost it is not resolving to 127.0.0.1 it 
still got the following error

Connection Failed 
The system returned: 
(111) Connection refused

what will be wrong with my system


please help

Thanks in advance


> I have just installed apache Http Server ver 1.3.28 on a win 98SE. 
> My problem is that when start the server and then my browser and 
> type http://localhost I am getting this error msge::
> 
> Connection Failed 
> The system returned: 
> (111) Connection refused
> 
> but when I use 127.0.0.1 everythings works fine
> 
> please help


--
Taurai Mail (http://www.taurai.co.zw)


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org