apache2ubuntu-13.10

AH00112: Warning: DocumentRoot [] does not exist but it does


I need some help figuring why apache tells me that my document root does not exists.

My document root is /home/user/Documents/Git/site/index.html... It is there!

My vhost looks like

<VirtualHost *:80>
    ServerName site.com
    DocumentRoot /home/user/Documents/Git/site/index.html
    ErrorLog /home/user/Documents/Git/site/error.log
    <Directory /home/user/Documents/Git/site>
        Require all granted
    </Directory>
</VirtualHost>

Permissions are 775 for Git and its subfolders and files and in my hosts 127.0.1.1 site.com

What am I doing wrong?

Thanks


Solution

  • Your document root cannot be a file, it must be a directory.