httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <>
Subject Re: [users@httpd] failing to determine servers fully qualified doamin name
Date Thu, 15 Jul 2010 14:28:30 GMT
On Thu, Jul 15, 2010 at 2:41 PM, Tapas Mishra <> wrote:
> My hostname and fqdns are different.

Did you read the manual entry I linked you to? It was specificly
chosen to illustrate why apache emits that error message, and what you
can do to fix the problem:

If no ServerName is specified, then the server attempts to deduce the
hostname by performing a reverse lookup on the IP address.

So it tries to do a PTR (reverse) lookup for your IP,,
which obviously doesn't return correctly, and so apache emits the

So to fix it, you must supply a ServerName (in the main config, not a
vhost) which apache can resolve. To make sure apache can resolve it,
simply add the hostname to /etc/hosts

Eg, if your server is called 'bob', then put 'ServerName bob' in the
apache config, and add a line ' bob' to /etc/hosts.

(Wondering why I bother.)


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