Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E5F3918AAD for ; Sun, 21 Jun 2015 22:29:36 +0000 (UTC) Received: (qmail 20291 invoked by uid 500); 21 Jun 2015 22:29:33 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 20249 invoked by uid 500); 21 Jun 2015 22:29:33 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 20239 invoked by uid 99); 21 Jun 2015 22:29:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jun 2015 22:29:33 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.240.58.140] (HELO knutejohnson.com) (216.240.58.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jun 2015 22:27:19 +0000 Received: from [192.168.3.5] ([192.168.3.5]) (authenticated bits=0) by knutejohnson.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t5LMSwal022409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 21 Jun 2015 15:29:04 -0700 To: users@httpd.apache.org References: <5586C506.8090109@knutejohnson.com> <5586FE72.2080608@gmail.com> From: Knute Johnson Message-ID: <55873AC8.9020403@knutejohnson.com> Date: Sun, 21 Jun 2015 15:29:28 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <5586FE72.2080608@gmail.com> Content-Type: multipart/alternative; boundary="------------020205040309040808080903" X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Where does apache look for the domain name? --------------020205040309040808080903 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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" > > 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 >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org -- Knute Johnson --------------020205040309040808080903 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
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> 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




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


-- 

Knute Johnson
--------------020205040309040808080903--