Hi, probably a simple fix but can't figure it out. Just setting up a CentOS server and trying to configure Apache. I have added the following to /etc/httpd/conf/httpd.conf:
Code:
# Additions
NameVirtualHost *:80
Include /etc/httpd/sites-enabled/
When I restart Apache, I get this:
Code:
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 2a00:1a48:xxxx:xxx:xxx:xxxx:ff08:2057 for ServerName
Checking /etc/hosts and I have this:
Code:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
x.x.xx.xxx myserver-staging
xx.xxx.xxx.xx myserver-staging
2a00:1a48:xxxx:xxx:xxx:xxxx:ff08:2057 myserver-staging
If I try to set ServerName myserver-staging in httpd.conf, restarting Apache fails without any error output.
Any ideas what I'm doing wrong here? Many thanks