apache domain name resolution issues

Restart apache when it will report an error:
apache2: Could not Reliably the Determine at The Server's Domain name Fully qualified, a using the Set at The 127.0.1.1 'ServerName' the this Directive Globally the Message to the suppress value.
Here Insert Picture Description
Solution:
generate a file fqdn.conf

vim /etc/apache2/conf-available/fqdn.conf

ServerName localhost write
Here Insert Picture Description
and tell apache to use

a2enconf fqdn

Here Insert Picture DescriptionRestart apache2, the problem is solved

service apache2 restart

Here Insert Picture Description

Published 36 original articles · won praise 9 · views 8214

Guess you like

Origin blog.csdn.net/qq_44902875/article/details/104548245