django - how to resolve You don't have permission to access / on this server -
hi need in integrating django apache , mod_wsgi on centos6. getting following error every time---"forbidden don't have permission access / on server." django project path= /home/mchauras/esapp/eswebsite apache version 2.2.15 .conf file looks this----
<virtualhost *:80> documentroot /home/mchauras/esapp/eswebsite/ alias /static /home/mchauras/esapp/eswebsite/esapp/static <directory /home/mchauras/esapp/eswebsite/esapp/static> options indexes followsymlinks includes execcgi allowoverride none order deny,allow allow </directory> <directory /home/mchauras/esapp/eswebsite/eswebsite> <files wsgi.py> options indexes followsymlinks includes execcgi allowoverride none order deny,allow allow </files> </directory> wsgidaemonprocess esapp python-path=/home/user/myproject:/home/mchauras/esapp/eswebsite/myvenv/lib/python3.5/site-packages/ wsgiprocessgroup esapp wsgiscriptalias / /home/mchauras/esapp/eswebsite/eswebsite/wsgi.py errorlog /home/mchauras/esapp/eswebsite/error.log customlog /home/mchauras/esapp/eswebsite/access.log combined </virtualhost>
my wsgi.py file this---
import os import sys django.core.wsgi import get_wsgi_application sys.path.append('/home/mchauras/esapp/eswebsite') os.environ.setdefault("django_settings_module", "eswebsite.settings") application = get_wsgi_application()
its looks did not login administrator user or maybe need changes , enable file permission in path
Comments
Post a Comment