Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Most websites have a domain name attached to them. Apache is looking for this on start-up. Depending on the version of Apache and Ubuntu this can be resolved by adding the ServerName Directive with the hostname of the server into the file name or httpd.conf.

You can determine hostname by typing,

Code Block
languagebash
hostname 
Expand
titleSide Note...
There actually is not much documentation on exactly what is happening here. If you happen to know then please let me know via comments on this page. Based on my reading here is how to resolve the error.

As of Jan 3 and recent build of Ubuntu 14.04 and Apache 2.4.7,

Modify /etc/apache2/apache2.conf,

Code Block
languagebash
# To put in here one liner to inject after # Global configuration 

As of June 5, 2012 the more recent build of Ubuntu 12 and Apache 2.2.22 add an entry into the file called name,

Code Block
langbash
sudo echo "ServerName $(bash -c "hostname")" >> /etc/apache2/conf.d/name"

...