![Windows 机器上的 Apache2.4 出现 Forbidden(403) 权限访问错误](https://linux22.com/image/750148/Windows%20%E6%9C%BA%E5%99%A8%E4%B8%8A%E7%9A%84%20Apache2.4%20%E5%87%BA%E7%8E%B0%20Forbidden(403)%20%E6%9D%83%E9%99%90%E8%AE%BF%E9%97%AE%E9%94%99%E8%AF%AF.png)
我在 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>
错误:
禁止您无权访问此服务器上的/。