Windows 机器上的 Apache2.4 出现 Forbidden(403) 权限访问错误

Windows 机器上的 Apache2.4 出现 Forbidden(403) 权限访问错误

我在 Apache2.4.38 上运行 Django 应用程序。我已提供所有必要的参数并授予 Apache 服务器访问权限。但当我尝试访问应用程序 URL 时,仍然收到 403 错误。

httpd-vhosts.conf:

Listen 8084
WSGIPythonPath "D:/WebAttendance/"
<VirtualHost *:8084>

 SSLEngine on
 SSLCertificateFile "D:/Desktop/Python/WebAttendance/certs/development.crt"
 SSLCertificateKeyFile "D:/Desktop/Python/WebAttendance/certs/development.key"

    WSGIScriptAlias / "D:/Desktop/Python/WebAttendance/WebAttendance/wsgi.py"
 DocumentRoot "D:/Desktop/Python/WebAttendance"

    <Directory "D:/Desktop/Python/WebAttendance/">
     <Files wsgi.py>
         AllowOverride All
         Require all granted
     </Files>
    </Directory>

    <Directory "D:/Desktop/Python/WebAttendance/home/static/">
 Require all granted
 </Directory>
    Alias /static "D:/Desktop/Python/WebAttendance/home/static"

    ErrorLog "D:/Desktop/Python/WebAttendance/log/error.log"
 CustomLog "D:/Desktop/Python/WebAttendance/log/access.log" common
</VirtualHost>

错误:

禁止您无权访问此服务器上的/。

相关内容