I am trying to add WSGIPythonPath
in VirtualHost
but it's throwing me an error:
Syntax error on line 549 of /etc/httpd/conf/httpd.conf:
WSGIPythonPath cannot occur within section
I tried to resolve it by following: Where should WSGIPythonPath point in my virtualenv?
But, on researching more, I found that WSGIDaemonProcess
and WSGIProcessGroup
are not supported on Windows according to Why WSGIDaemonProcess isn't available on Windows?.
So, How should I add WSGIPythonPath
and where so that I can host multiple Django site on my Apache24 server.
Any help would be beneficial.
Here is my httpd.conf
file:
LoadFile "c:/python37/python37.dll"
LoadModule wsgi_module "c:/python37/lib/site-packages/mod_wsgi/server/mod_wsgi.cp37-win_amd64.pyd"
WSGIPythonHome "c:/python37"
WSGIPythonPath "E:/edukon/"
Listen 7020
<VirtualHost *:7020>
ServerName 000.000.000.000
# Django Project
WSGIScriptAlias / "E:/edukon/edukon/wsgi.py"
<Directory "E:/edukon/edukon">
<Files wsgi.py>
Require all granted
</Files>
</Directory>
Alias /static "E:/edukon/static/"
<Directory "E:/edukon/static/">
Require all granted
</Directory>
Alias /media "E:/edukon/media/"
<Directory "E:/edukon/media/">
Require all granted
</Directory>
</VirtualHost>