我得到" 403被禁止"当试图访问我的网站时。我使用的是apache 2.4.1,django 1.8和python 2.7。我试图改变
要求全部授予
在“文件”部分中
命令拒绝,允许所有
允许
但它没有用。
Apache配置:
<VirtualHost *:80>
Alias /static /home/roma0851/project/meetingsSystem/static
<Directory /home/roma0851/project/meetingsSystem/static>
Require all granted
</Directory>
<Directory /home/roma0851/project/meetingsSystem/meetingsSystem>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess project python-path=/home/roma0851/project:/home/roma0851/project/lib/python2.7/site-packages
WSGIProcessGroup meetingsSystem
WSGIScriptAlias / /home/roma0851/project/meetingsSytem/meetingsSystem/wsgi.py
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
错误日志:
[Wed Dec 02 11:32:15.699551 2015] [authz_core:error] [pid 11572:tid 140381727454976] [客户端78.56.172.255:61955] AH01630:客户端被拒绝 通过服务器配置:/ home / roma0851 / project / meetingsSytem