quaerere veritatem quaerere veritatem - 1 month ago 24
Apache Configuration Question

AH00112: Warning - Centos 6 / Apache 2.4 / Django 1.9 / mod_wsgi 3.5 / python 2.7

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:

When I restart apache:

[root@sXXX-XXX-XXX-XXX /]# /scripts/restartsrv httpd

I get this:

AH00112: Warning: DocumentRoot [/usr/local/apache/var/www/<my_django_project>] does not exist
AH00112: Warning: DocumentRoot [/usr/local/apache/var/www/<my_django_project>] does not exist
AH00112: Warning: DocumentRoot [/usr/local/apache/var/www/<my_django_project>] does not exist

I never specified a path of

It seems to just append my
... not sure why

My httpd.conf file:

... 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

<VirtualHost XXX.XXX.XXX.X:80>

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

Alias /favicon.ico /var/www/<my_django_project>/static/favicon.ico

Alias /static /var/www/<my_django_project>/static
<Directory /var/www/<my_django_project>/static>
Require all granted

Alias /media /var/www/<my_django_project>/media
<Directory /var/www/<my_django_project>/media>
Require all granted

WSGIDaemonProcess <my_django_project> python-path= /var/www/<my_django_project>:/var/www/<my_django_project>/<my_django_project>:/var/www/<my_django_project>/<my_django_project_site>:/usr/local/lib/python2.7/site-packages
WSGIProcessGroup <my_django_project>
WSGIScriptAlias / /var/www/<my_django_project>/<my_django_project>/wsgi.py

<Directory /var/www/<my_django_project>/<my_django_project>>
<Files wsgi.py>
Require all granted


... more stuff already in the conf file ...

When I go to
in my internet browser it told me it can't find .htaccess file. But now it's just redirecting me to http://XXX.XXX.XXX.XXX/cgi-sys/defaultwebpage.cgi

Any help would be much appreciated


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

My browser now gives me:


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.


This would indicate you have set DocumentRoot 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 ServerRoot directory which in your case is /usr/local/apache. Make sure that all your file system paths you set up are absolute path names with leading slash.