Re: Where does apache look for the domain name?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


-- 

Knute Johnson

begin:vcard
fn:Greg Borbonus
n:Borbonus;Greg
org:Able Admins;IT
adr:;;3610 parkbank ct,;Houston;Tx;77068;US
email;internet:gregborbonus@xxxxxxxxx
title:Sr. System Administrator
tel;work:(832) 699- 0461
tel;cell:(832) 699- 0461
x-mozilla-html:TRUE
url:http://www.linkedin.com/in/gregborbonus/
version:2.1
end:vcard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux