当我尝试在apache上启动wsgi应用程序时出现以下错误:
httpd.exe: Syntax error on line 185 of C:/httpd-2.4.37-win64-VC14/Apache24/conf/httpd.conf: Cannot load modules/mod_wsgi.so into server: %1 is not a valid Win32 application.
我遵循以下步骤:
使用pip install安装了mod_wsgi
运行mod_wsgi-express module-config并将输出复制到mod_wsgi.so文件并保存在Apache的modules文件夹中
在apache中的httpd conf文件中添加了以下内容:
LoadModule wsgi_module modules/mod_wsgi.so
WSGIScriptAlias /wsgi "C:/wsgi_app/wsgi_app.py"
<Directory "C:/wsgi_app">
AllowOverride None
Options None
Order deny,allow
Allow from all
</Directory>
但是当我尝试使用httpd.exe运行apache服务器时,出现了以上错误。