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. Addas the last line infile.
  2. Create a file namedand add the stringinside and save it. Create a soft link underas follows

and restart the server.

The string

can be replaced with any valid domain name (ie.




Leave a Reply