httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolfgang Schaefer <>
Subject Re: [users@httpd] A question about configuring Apache Http Server
Date Fri, 11 Sep 2009 21:10:35 GMT
thomas2004 schrieb:
> I have to some correction as follow:
>> Once you make sure that there is an Apache running, then you could try the
> following :
>> enter the command :
>> telnet 80
>> GET / HTTP/1.0
>> (the second line above, you have to enter "blind", because there will be no
> echo; the third line is just a "return")
>> Do you get something ?
> After I entered "telnet 80" I got followings:
> Trying
> telnet: Unable to connect to remote host: Connection refused
> I think here is the problem. What should I do?
> Yes, I got the line which shows the Apache is listening. 
> tcp        0      0    *                  
> LISTEN      21625/httpd

Your output of the netstat command show that your server listens on the ip, but
you tried to telnet to That would explain why you could not connect to!
telnet 80
HEAD / HTTP/1.0         # after this line hit twice the enter key and you should get an output

Another way to test you webserver is as Krist suggested:

> A more comfortable way to test your webserver from your commandline is
> with the curl or wget command (every linux distribution has them, i
> prefer curl)

> So do for example:
> curl http://localhost
> or
> wget http://localhost

Of course here you have to replace localhost with the actual ip or hostname of your server.
So in your case this would be:
to test your webserver, because as you can see from your netstat output your server only listens
on the ip


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message