Suppressing Apache 2.x ServerName error on restart

Apache 2.2 / 2.4 error message on reloading / restarting server


This can be overcome by two way.

  1. Add as the last line in file.
  2. Create a file named and add the string inside and save it. Create a soft link under as follows

and restart the server.

The string

can be replaced with any valid domain name (ie.




Leave a Reply