Я установил Apache 2.4 (vc15 apacheLounge) и Python 3.7. Я установил mod_wsgi с помощью PIP, и все выглядит правильно на сервере Apache.
error.log из apache:
[mpm_winnt:notice] [pid 9688:tid 780] AH00455:
Apache/2.4.37 (Win64) mod_wsgi/4.6.5 Python/3.7 configured -- resuming normal operations
[mpm_winnt:notice] [pid 9688:tid 780] AH00456: Apache Lounge VC15 Server built: Nov 21 2018 11:51:35
Я выполнил шаги "https://modwsgi.readthedocs.io/en/develop/user-guides/quick-configuration-guide.html"и когда я пытаюсь загрузить тестовое приложение, все, что я получаю, - это текстовое представление кода.
Мой httpd.conf
сведения о файлах:
WSGIScriptAlias /wsgi "C:/apache24/htdocs/wsgi_app/wsgi_app.wsgi"
<Directory /apache24/htdocs/wsgi_app>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>