AH00112: Warning - Centos 6 / Apache 2.4 / Django 1.9 / mod_wsgi 3.5 / python 2.7
<p>I have a dedicated server with GoDaddy.  I seem to have successfully set up everything properly but I can't seem to figure out why I'm getting this issue:</p>

<p>When I restart apache:</p>

<pre><code>[root@sXXX-XXX-XXX-XXX /]# /scripts/restartsrv httpd
</code></pre>

<p>I get this:</p>

<pre><code>AH00112: Warning: DocumentRoot [/usr/local/apache/var/www/&lt;my_django_project&gt;] does not exist
AH00112: Warning: DocumentRoot [/usr/local/apache/var/www/&lt;my_django_project&gt;] does not exist
AH00112: Warning: DocumentRoot [/usr/local/apache/var/www/&lt;my_django_project&gt;] does not exist
</code></pre>

<p>I never specified a path of <code>/usr/local/apache/var/www/&lt;my_django_project&gt;</code> ???</p>

<p>It seems to just append my <code>var/www/&lt;my_django_project&gt;</code> to <code>/usr/local/apache</code> ... not sure why</p>

<p>My httpd.conf file:</p>

<pre><code>... a bunch of pre configured goDaddy stuff I'm guessing here ...


LoadModule wsgi_module /usr/local/apache/extramodules/mod_wsgi.so
AddHandler wsgi-script .wsgi

&lt;VirtualHost XXX.XXX.XXX.X:80&gt;

ServerName XXX.XXX.XXX.XXX
ErrorLog /var/log/httpd/error.log
# DocumentRoot /public_html/
ServerAdmin admin-noreply@mysite.com

Alias /favicon.ico /var/www/&lt;my_django_project&gt;/static/favicon.ico

Alias /static /var/www/&lt;my_django_project&gt;/static
&lt;Directory /var/www/&lt;my_django_project&gt;/static&gt;
        Require all granted
&lt;/Directory&gt;

Alias /media /var/www/&lt;my_django_project&gt;/media
&lt;Directory /var/www/&lt;my_django_project&gt;/media&gt;
        Require all granted
&lt;/Directory&gt;

WSGIDaemonProcess &lt;my_django_project&gt; python-path= /var/www/&lt;my_django_project&gt;:/var/www/&lt;my_django_project&gt;/&lt;my_django_project&gt;:/var/www/&lt;my_django_project&gt;/&lt;my_django_project_site&gt;:/usr/local/lib/python2.7/site-packages
WSGIProcessGroup &lt;my_django_project&gt;
WSGIScriptAlias / /var/www/&lt;my_django_project&gt;/&lt;my_django_project&gt;/wsgi.py

&lt;Directory /var/www/&lt;my_django_project&gt;/&lt;my_django_project&gt;&gt;
    &lt;Files wsgi.py&gt;
        Require all granted
    &lt;/Files&gt;
&lt;/Directory&gt;

&lt;/VirtualHost&gt;

... more stuff already in the conf file ...
</code></pre>

<p>When I go to <code>XXX-XXX-XXX-XXX:80</code> in my internet browser it told me it can't find .htaccess file.  But now it's just redirecting me to <a href="http://XXX.XXX.XXX.XXX/cgi-sys/defaultwebpage.cgi" rel="nofollow">http://XXX.XXX.XXX.XXX/cgi-sys/defaultwebpage.cgi</a></p>

<p>Any help would be much appreciated</p>

<p>EDIT:</p>

<p>It was pointed out that <code>AH00112: Warning: DocumentRoot [/usr/local/apache/var/www/&lt;my_django_project&gt;] does not exist</code> was due to not adding <code>/</code> in front of path.</p>

<p>My browser now gives me:</p>

<pre><code>Forbidden

You don't have permission to access / on this server.
Server unable to read htaccess file, denying access to be safe

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
</code></pre>

<p>This would indicate you have set <code>DocumentRoot</code> directive somewhere in your Apache configuration files to a path that does not have a leading slash. When that occurs Apache will append the path to the end of the <code>ServerRoot</code> directory which in your case is <code>/usr/local/apache</code>. Make sure that all your file system paths you set up are absolute path names with  leading slash.</p>

python django apache python-2.7 mod-wsgi