Setting fully qualified domain name for Apache server

Edit /etc/apache2/httpd.conf

Search, using ctrl-w, for ServerName

Uncomment this line:

#ServerName www.example.com:80

and then change the last part to “localhost”

ServerName localhost