httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg <gregborbo...@gmail.com>
Subject Re: [users@httpd] Where does apache look for the domain name?
Date Sun, 21 Jun 2015 18:12:02 GMT
It may also be in apache2.conf

If you find the file /etc/apache2/apache2.conf, just run:

echo 'ServerName YOUR_SERVERS_FQDN' >> /etc/apache2/apache2.conf

Replace YOUR_SERVERS_FQDN with the actual hostname of the server that 
RESOLVES. It's important that if you set it to server.domain.com, then 
server.domain.com should point to the correct ip of your server.

 From the looks of it, your servers hostname is knute5.frazmtn.com and 
it resolves properly.

IF that is the case AND /etc/apache2/apache2.conf is the correct config 
file, just run:
echo 'ServerName knute5.frazmtn.com' >> /etc/apache2/apache2.conf

Do not run both commands or the same command twice, you only want 1 
entry for the servers ServerName.

Thank you,
Greg Borbonus
*Nix Server administrator
832-699-0461
http://www.linkedin.com/in/gregborbonus/

On 6/21/2015 9:12 AM, aparna Puram wrote:
>
> In httpd.conf file
>
> On 21-Jun-2015 7:37 pm, "Knute Johnson" <apache@knutejohnson.com 
> <mailto:apache@knutejohnson.com>> wrote:
>
>     Got this in my log:
>
>     /etc/cron.daily/logrotate:
>     apache2: Could not reliably determine the server's fully qualified
>     domain name, using 216.240.58.141 for ServerName
>
>     Where does apache look for the domain name?
>
>     Thanks,
>
>     -- 
>
>     Knute Johnson
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>     <mailto:users-unsubscribe@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <mailto:users-help@httpd.apache.org>
>


Mime
View raw message