You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jacob Coby <jc...@listingbook.com> on 2002/08/23 19:10:27 UTC

Re: serves everything but localhost

do you have "127.0.0.1               localhost localhost.localdomain" in
/etc/hosts?

----- Original Message -----
From: "rm" <rm...@crescentconstruction.com>
To: "apache list" <us...@httpd.apache.org>
Sent: Friday, August 23, 2002 1:19 PM
Subject: serves everything but localhost


> After a quick search of the archives I didn't find anyone that had a
> similar situation:
>
> Redhat 7.1(with all updates),Apache 1.3.24, mod_perl, mod_ssl, openssl,
> php-4.2.1.  The system worked well in that configuration for about 3
> months with no noticeable problems.
>
> We needed to replace the hard drive with a larger drive so we imaged the
> disk to a larger drive.  We started the server with the new drive and
> everything seemed to be fine.  All the directories, files, web pages,
> etc.are still there. The apache server serves to both the LAN and WAN
> exactly as before, but....
>
>  when I try to check something using the "localhost" address it won't
> connect.
>
> I've compared the httpd conf file with the original - it's identical.
> Any ideas what we may have screwed up?
>
> thanks,
>
> Regis
>
>
>
>
> ---------------------------------------------------------------------
> 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: serves everything but localhost

Posted by Naseer Bhatti <na...@ilm.edu>.
your /etc/hosts file should contain the following lines,

127.0.0.1       localhost.localdomain localhost
192.168.x.x   maybe.somedomain.com alias_of_domain

# EOF

Thats all. You should have your local interface IP defined in the file. Only
after that you will be able to communicate properly with the interface.

[root@redy rec]# ping localhost
PING localhost.localdomain (127.0.0.1) from 127.0.0.1 : 56(84) bytes of
data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64
time=0.059 ms


Naseer


----- Original Message -----
From: "rm" <rm...@crescentconstruction.com>
To: "apache list" <us...@httpd.apache.org>
Sent: Saturday, August 24, 2002 12:16 AM
Subject: Re: serves everything but localhost


> On Fri, 2002-08-23 at 13:51, Jacob Coby wrote:
> > > - the response to:
> > > #ping localhost
> > > PING localhost.localdomain (127.0.0.1) from 192.168.0.3 : 56(84) bytes
> > > of data.
> >
> > Ah ha!  Notice it says localhost.localdomain :)  Try reversing the order
> > that you put the definition into /etc/hosts to what I posted earlier, or
> > completely take out the localhost.localdomain part.
> >
> > You should see:
> >
> > $ ping localhost
> > PING localhost (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
> > 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=255 time=0.094 ms
> >
> > -Jacob
> > http://www.listingbook.com
> >
> >
>
> Good idea - but...
>
> when I reversed the order of localhost and localhost.localdomain, I got
>  PING localhost (127.0.0.1) from 192.168.0.3 : 56(84) bytes of data.
>
> completely eliminating localhost.localdomain produced an identical
> ping.  The terminal just hangs up there - so something seems to be
> fubar.
>
>
> ---------------------------------------------------------------------
> 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: serves everything but localhost

Posted by rm <rm...@crescentconstruction.com>.
On Fri, 2002-08-23 at 13:51, Jacob Coby wrote:
> > - the response to:
> > #ping localhost
> > PING localhost.localdomain (127.0.0.1) from 192.168.0.3 : 56(84) bytes
> > of data.
> 
> Ah ha!  Notice it says localhost.localdomain :)  Try reversing the order
> that you put the definition into /etc/hosts to what I posted earlier, or
> completely take out the localhost.localdomain part.
> 
> You should see:
> 
> $ ping localhost
> PING localhost (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
> 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=255 time=0.094 ms
> 
> -Jacob
> http://www.listingbook.com
> 
> 

Good idea - but...

when I reversed the order of localhost and localhost.localdomain, I got
 PING localhost (127.0.0.1) from 192.168.0.3 : 56(84) bytes of data.

completely eliminating localhost.localdomain produced an identical
ping.  The terminal just hangs up there - so something seems to be
fubar.


---------------------------------------------------------------------
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: serves everything but localhost

Posted by Jacob Coby <jc...@listingbook.com>.
> - the response to:
> #ping localhost
> PING localhost.localdomain (127.0.0.1) from 192.168.0.3 : 56(84) bytes
> of data.

Ah ha!  Notice it says localhost.localdomain :)  Try reversing the order
that you put the definition into /etc/hosts to what I posted earlier, or
completely take out the localhost.localdomain part.

You should see:

$ ping localhost
PING localhost (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=255 time=0.094 ms

-Jacob
http://www.listingbook.com


---------------------------------------------------------------------
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: serves everything but localhost

Posted by rm <rm...@crescentconstruction.com>.
On Fri, 2002-08-23 at 13:14, Jacob Coby wrote:
> 
> 
> > Yes, it reads:
> > "127.0.0.1 localhost.localdomain localhost"
> > 
> > I've also tried using 127.0.0.1, and localhost.localdomain - same
> > result.
> 
> What happens when you `ping localhost` ?
> 
> -Jacob
> http://www.listingbook.com
> 

Hey Jacob,

- the response to: 
#ping localhost
PING localhost.localdomain (127.0.0.1) from 192.168.0.3 : 56(84) bytes
of data.

thanks,

regis


---------------------------------------------------------------------
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: serves everything but localhost

Posted by Jacob Coby <jc...@listingbook.com>.

> Yes, it reads:
> "127.0.0.1 localhost.localdomain localhost"
> 
> I've also tried using 127.0.0.1, and localhost.localdomain - same
> result.

What happens when you `ping localhost` ?

-Jacob
http://www.listingbook.com


---------------------------------------------------------------------
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: serves everything but localhost

Posted by rm <rm...@crescentconstruction.com>.
Yes, it reads:
"127.0.0.1	localhost.localdomain localhost"

I've also tried using 127.0.0.1, and localhost.localdomain - same
result.

On Fri, 2002-08-23 at 12:10, Jacob Coby wrote:
> do you have "127.0.0.1               localhost localhost.localdomain" in
> /etc/hosts?
> 
> ----- Original Message -----
> From: "rm" <rm...@crescentconstruction.com>
> To: "apache list" <us...@httpd.apache.org>
> Sent: Friday, August 23, 2002 1:19 PM
> Subject: serves everything but localhost
> 
> 
> > After a quick search of the archives I didn't find anyone that had a
> > similar situation:
> >
> > Redhat 7.1(with all updates),Apache 1.3.24, mod_perl, mod_ssl, openssl,
> > php-4.2.1.  The system worked well in that configuration for about 3
> > months with no noticeable problems.
> >
> > We needed to replace the hard drive with a larger drive so we imaged the
> > disk to a larger drive.  We started the server with the new drive and
> > everything seemed to be fine.  All the directories, files, web pages,
> > etc.are still there. The apache server serves to both the LAN and WAN
> > exactly as before, but....
> >
> >  when I try to check something using the "localhost" address it won't
> > connect.
> >
> > I've compared the httpd conf file with the original - it's identical.
> > Any ideas what we may have screwed up?
> >
> > thanks,
> >
> > Regis
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
> 



---------------------------------------------------------------------
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