You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Knute Johnson <ap...@knutejohnson.com> on 2015/06/21 16:07:02 UTC

[users@httpd] Where does apache look for the domain name?

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
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Where does apache look for the domain name?

Posted by aparna Puram <ap...@gmail.com>.
In https.conf file
On 21-Jun-2015 7:37 pm, "Knute Johnson" <ap...@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
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Where does apache look for the domain name?

Posted by Greg <gr...@gmail.com>.
the one "outside" the virtualhost directive is inside the default 
virtualhost.

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

On 6/21/2015 5:29 PM, Knute Johnson wrote:
> Thanks for all the replies.  I do have the apache.conf file.  Since I 
> didn't have the httpd.conf file I tried putting it in with the 
> VirtualHost but outside of the label.  That seems to have solved it 
> for now.  I had a ServerName directive inside the VirtualHost but 
> apparently it needs one outside as well.
>
> Thanks,
>
> knute...
>
> On 6/21/2015 11:12, Greg wrote:
>> 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 
>>> <ma...@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
>>>     <ma...@httpd.apache.org>
>>>     For additional commands, e-mail: users-help@httpd.apache.org
>>>     <ma...@httpd.apache.org>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail:users-help@httpd.apache.org
>
>
> -- 
>
> Knute Johnson


Re: [users@httpd] Where does apache look for the domain name?

Posted by Knute Johnson <ap...@knutejohnson.com>.
Thanks for all the replies.  I do have the apache.conf file.  Since I 
didn't have the httpd.conf file I tried putting it in with the 
VirtualHost but outside of the label.  That seems to have solved it for 
now.  I had a ServerName directive inside the VirtualHost but apparently 
it needs one outside as well.

Thanks,

knute...

On 6/21/2015 11:12, Greg wrote:
> 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 
>> <ma...@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
>>     <ma...@httpd.apache.org>
>>     For additional commands, e-mail: users-help@httpd.apache.org
>>     <ma...@httpd.apache.org>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


-- 

Knute Johnson


Re: [users@httpd] Where does apache look for the domain name?

Posted by Greg <gr...@gmail.com>.
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 
> <ma...@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
>     <ma...@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <ma...@httpd.apache.org>
>


Re: [users@httpd] Where does apache look for the domain name?

Posted by aparna Puram <ap...@gmail.com>.
In httpd.conf file
On 21-Jun-2015 7:37 pm, "Knute Johnson" <ap...@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
> For additional commands, e-mail: users-help@httpd.apache.org
>
>