...
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,
Expand |
---|
|
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 |
---|
|
# 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 |
---|
|
sudo echo "ServerName $(bash -c "hostname")" >> /etc/apache2/conf.d/name" |
...