Django(13)权限被拒绝:AH00035:访问/拒绝,因为Mac OSX上路径组件上缺少搜索权限

时间:2016-04-10 08:34:54

标签: django macos apache permissions

我正在尝试在Mac OSX上的 apache 中部署 django 项目。

按照Deploy Django on Mac OSX

中的所有步骤操作

在日志中收到此错误:

(13)Permission denied: [client ::1:63146] AH00035: access to / denied (filesystem path '/Users/nitinsolanki/Documents/virtual_environment') because search permissions are missing on a component of the path

/etc/apache2/extra/httpd-vhosts.conf

中设置include /private/etc/apache2/extra/vhosts/localhost.conf

/ etc / apache2 / extra / vhosts /

中创建一个文件 - localhost.conf
<VirtualHost *:80>

    ServerName localhost

    # Static files
    DocumentRoot "/Users/nitinsolanki/Documents/virtual_environment/test/"
    ErrorLog "/Users/nitinsolanki/Documents/virtual_environment/test/error.log"
    CustomLog "/Users/nitinsolanki/Documents/virtual_environment/test/access.log" common
    Alias /static/ /Users/nitinsolanki/Documents/virtual_environment/test/static

    <Directory /Users/nitinsolanki/Documents/virtual_environment/test/static>
            Order deny,allow
            Allow from all
    </Directory>

    <Directory /Users/nitinsolanki/Documents/virtual_environment/test/myproject>
        <Files wsgi.py>
            Order deny,allow
            Allow from all
        </Files>
    </Directory>

    WSGIDaemonProcess test python-path=/Users/nitinsolanki/Documents/virtual_environment/test:/Users/nitinsolanki/Documents/virtual_environment/test/virtual_test/lib/python2.7/site-packages
    WSGIProcessGroup test
    WSGIScriptAlias / /Users/nitinsolanki/Documents/virtual_environment/test/myproject/wsgi.py


</VirtualHost>

如何克服权限的问题?即使我将权限设置为 django-project(测试)

0 个答案:

没有答案