httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <tevans...@googlemail.com>
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 <mightydreams@gmail.com> 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, 192.168.1.5,
which obviously doesn't return correctly, and so apache emits the
error.

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 '192.168.1.5 bob' to /etc/hosts.

(Wondering why I bother.)

Tom

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


Mime
View raw message