Saturday, September 17, 2011

error client ip File does not exist: /etc/apache2/htdocs after cloning

We cloned an ESX VM today to take advantage of all configurations in there. I went ahead and removed all unnecessary services and just left apache however something was not working:
error] [client] File does not exist: /etc/apache2/htdocs

I knew this was not a configuration issue as in the original VM apache does run without complaining.

It ended up being something about relative and absolute paths. For some reason Apache was failing to find the sites-enabled directory when using relative paths. A correction in /etc/apache2/apache2.conf made the trick:
$ sudo vi /etc/apache2/apache2.conf 
#Include sites-enabled/
Include /etc/apache2/sites-enabled/

No comments: