Apache mod_wsgi error: Forbidden You don't have permission to access / on this server

后端 未结 5 1768
长发绾君心
长发绾君心 2020-12-01 14:35

I\'m using Ubuntu 10.04.
I create a django project under /home/wong2/Code/python/django2/ named atest
and create a wsgi file setting.

5条回答
  •  天涯浪人
    2020-12-01 15:28

    With Django 1.5+ you should use the suggested way described in the documentation:

    WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
    WSGIPythonPath /path/to/mysite.com
    
    
    
    Require all granted
    
    
    

    https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/modwsgi/

提交回复
热议问题