"Access forbidden!" 阿帕奇 + WSGI + XAMPP



我这是在碰壁。我通过xampp有一个Apache 2.4服务器,我试图用wsgi应用程序设置。我按照https://modwsgi.readthedocs.io/en/develop/user-guides/quick-configuration-guide.html的指示搜索了很多网络,但似乎没有任何工作,我总是得到这个错误

Access forbidden!
    You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
    If you think this is a server error, please contact the webmaster.
Error 403
    10.226.65.62
    Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_wsgi/4.4.12 Python/2.7.12 PHP/5.6.24

我已经将窗口文件夹权限设置为"Everyone",并尝试了各种

的组合
<Directory "C:/wsgi-scripts">
   AllowOverride none
    Require all denied
</Directory>

但似乎什么都不起作用。有人对此有什么想法吗?我的httpd.conf可以在这里找到http://pastebin.com/uLtdXqrv

谢谢

您告诉Apache禁止访问。你有:

<Directory "C:/wsgi-scripts">
   AllowOverride none
    Require all denied
</Directory>

应该是:

<Directory "C:/wsgi-scripts">
   AllowOverride none
    Require all granted
</Directory>

查看Apache文档,了解deniedgranted之间的区别。

  • http://httpd.apache.org/docs/2.4/mod/mod_authz_core.html要求

最新更新