Apache 服务器在 Linux 错误中禁止访问

Apache server in Linux error forbidden access

我是网络开发的初学者。当我 运行 Apache 服务器在网页中给我这个错误时:

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.4.20 (Unix) mod_wsgi/4.4.22 Python/2.7.11 

我正在使用 Django 1.9.1 网络应用程序进行开发,并使用 mode_wsgi 和 apache 版本 2。这是我的 wsgi.py 文件:

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "newSite.settings")

application = get_wsgi_application()

和我的 httpd.conf :

WSGIScriptAlias /newsite "/home/hello/django/newSite/newSite/wsgi.py"
WSGIPythonPath "/home/hello/django/newSite"

<Directory "/home/hello/django/newSite/newSite/">
<Files wsgi.py>
Require all granted
</Files>
</Directory>

谢谢大家'
我真的成功 运行 服务器。
只需将目标目录权限更改为 775,并将 httpd.conf 中的用户和组更改为我当前的用户。
对于站点根目录的自定义文件夹,更改 httpd.conf 的 "DocumentRoot" 并设置权限。


对不起我的英语。
再次感谢