我尝试在Apache24服务器上运行一个简单的“ hello world”烧瓶应用程序。当我转到localhost:5000时 抛出错误。禁止 您无权访问此资源。
httpd-vhosts.conf
ServerName localhost:5000
<VirtualHost *:5000>
ServerName localhost:5000
WSGIScriptAlias \ web\"E:\myapp\app\index\web.wsgi"
DocumentRoot "E:/myapp/app"
<Directory "C:\myapp\app\index">
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
ErrorLog "E:/myapp/app/logs/error.log"
CustomLog "E:/myapp/app/logs/access.log" common
</VirtualHost>
web.wsgi文件
import sys
sys.path.append('E:/myapp/app/index')
from app import app as application
application.debug = True
错误日志文件中的错误消息 [2019年9月18日星期三18:28:17.908319] [authz_core:错误] [pid 11304:tid 1196] [客户端:: 1:52498] AH01630:服务器配置拒绝了客户端:E:/ myapp / app /