httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <>
Subject Re: server is not accepting connections
Date Wed, 27 Feb 2002 10:36:26 GMT
amit khatri wrote:
> I have just connected two pc's using lan cards.
> One is a client and other is server.
> The server is running an httpd daemon (apache).
> I have configured the httpd.conf file , with some of main directives as
> follows:
> -----------------------------------------------------------------------
> ServerType standalone
> ServerName localhost
> Listen 80
> -----------------------------------------------------------------------
> My ethernet card has ip address
> When i type the following line ON THE SERVER ITSELF
> ""
> in the netscape navigator i view the default home page saved in directory
> /var/www/html.
> But when i try the line "" from the client side
> i get error message "Server is not accepting the connections"
> Does the above problem has any relations with the telnet service.
> because my server is able to connect through telnet ,but  my client is
> not able to connect to the server.

A few points:

1) Normally, apache listens to all active IP addresses. However, to make
sure (I never trust defaults) make it explicit with:


2) Your line:

> ServerName localhost

may have unexpected consequences. This is used by apache to make
self-referential URLs. That is, if you have a directory called "banana"
under you docroot and you type something like ""
(i.e. no trailing slash) into a browser, the server will respond with a
301 redirect to the banana directory. BUT it will use the ServerName to
form the redirect. So your server will respond with
"http://localhost/banana/" - which is not really what you want.

I would either;

- set ServerName
- remove ServerName altogether
- set UseCanonicalName off (to diable this redirect behaviour)

read the docs for ServerName and UseCanonicalName for more details.

3) You seem to imply that the client can't even telnet to the server -
if so, there are probably network problems. Is inetd running on the
server? Is inetd.conf set up to allow telnetd etc. to fire up on
incoming connections? Are both network cards configured and working?
(try "ifconfig -a" on both machines to test).


Owen Boyle.

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

View raw message