Apache2 Dual Stack Global Config Question with error.

Issues related to applications and software problems
Post Reply
User avatar
gjdunga
Posts: 1
Joined: 2018/09/18 01:16:29
Location: Penrose, Colorado
Contact:

Apache2 Dual Stack Global Config Question with error.

Post by gjdunga » 2018/09/18 02:39:25

Problem: I am attempting to use Centos7 to host virtual hosts and keep the true machine name open for locked down web-based admin utils. The system is dual stack, and I want to be able to host different virtual hosts, using both stacks. The default global httpd.conf was happy until I added the IPv6 part into the virtual hosts.

Question:
I was not able to find a definitive answer. Does one have to declare the server name twice in the global config using each stack?
Am I making the incorrect assumption that Apache2 will do name based virtual hosts in IPv6?
I have a /64, so if I need to define them directly so be it, but I only have 1 IPv4, and would prefer not to have to buy a block for this very simple project. I also want to be able to spin up https and this is making my brain hurt.

Info:
The box is pingable, reachable, and I could see the specific test page for each virtual host on the IPv4 side, and the global test page of the box.
The box is pingable, reachable, and I can see the global default global page, but apparently not the virtual hosts in the IPv6

Error Message:

Code: Select all

# sudo apachectl configtest
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::216:3eff:fe0b:dfef. Set the 'ServerName' directive globally to suppress this message
Syntax OK
I'm Using:

Code: Select all

CentOS Linux 7 (Core)
 CPE OS Name: cpe:/o:centos:centos:7
 Kernel: Linux 3.10.0-123.4.4.el7.x86_64
Architecture: x86-64  (VM-XEN)
WITH: httpd-2.4.6-80.el7.centos.1.x86_64

/etc/hosts

Code: Select all

::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
XX.XX.XX.XX blah1.blah.com www.blah.com blah.com blah
2001:470:c:XXXX::X blah1.blah.com www.blah.com blah.com blah


Thank you in advance for your help!

Gabriel

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Apache2 Dual Stack Global Config Question with error.

Post by TrevorH » 2018/09/18 06:08:03

Kernel: Linux 3.10.0-123.4.4.el7.x86_64
I don't have an answer for your question but you do badly need to update that system. That kernel is one of the very first from 7.0 released in 2014 and there have been hundreds of security fixes made since then. The kernel will not be the only package to be affected. Run yum update to get to 7.5 and up to date.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply