Hello, this is my first time deploy django project locally using apache and mod_wsgi.
i have install mod_wsgi and this is my configuration in httpd.conf for apache :
LoadFile "C:/Python310/python310.dll"
LoadModule wsgi_module "C:/Python310/lib/site-packages/mod_wsgi/server/mod_wsgi.cp310-win_amd64.pyd"
WSGIPythonHome C:/Python310
WSGIScriptAlias / D:/keda/keda/keda/wsgi.py
WSGIPythonPath D:/keda/keda/
<Directory D:/keda/keda/keda>
<Files wsgi.py>
Options +ExecCGI
Require all granted
</Files>
</Directory>
ErrorLog D:/keda/apache.error.log
CustomLog D:/keda/apache.custom.log common
but i get this 500 error said :
[Tue Jan 31 17:29:55.338770 2023] [cgi:error] [pid 11320:tid 1948] (9)Bad file descriptor: [client ::1:59107] AH01222: don’t know how to spawn child process: D:/keda/keda/keda/wsgi.py, referer: http://localhost/
anyone know how to fix this error?
because if i do #! or ! in wsgi.py it’s not readable