vhosts

Apache2 Conf Error

  • Posted on: 20 March 2015
  • By: davis

For this failure:

root @ cloud-server-XXX:/# sudo /etc/init.d/apache2 reload
apache2: Syntax error on line 223 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/daviseford.com: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
...fail!

The fix is to copy the daviseford.com file from /etc/apache2/sites-available and rename it to daviseford.com.conf

Place that file in /etc/apache2/sites-enabled/

Apache2 will then be happy.