Answer the question
In order to leave comments, you need to log in
What should be the wsgi.conf (Apache) settings to run multiple applications?
Friends, hello everyone!
I'm trying to start the second application on Apache, but only the first VirtualHost works, tell me what I'm doing wrong, wsgi.conf listing:
#Configure mod_wsgi file apache
<VirtualHost *:80>
ServerName pymain
WSGIDaemonProcess pybsk processes=1 threads=5 display-name='pybsk-service' restart-interval=86400
WSGIScriptAlias /Get /var/www/python/main.py
# WSGICallableObject 'application'
LogLevel info
DocumentRoot /var/www/python/
<Directory /var/www/python/>
WSGIProcessGroup pymain
WSGIApplicationGroup %{GLOBAL}
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
<IfDefine MOD_WSGI_LOAD_PYTHON_DYLIB>
LoadFile ''
</IfDefine>
WSGIMapHEADToGET Auto
</VirtualHost>
<VirtualHost *:80>
ServerName pk
WSGIDaemonProcess pk processes=1 threads=1 display-name='pk-service' restart-interval=86400
WSGIScriptAlias /pk /var/www/python/pk/pkmain.py
# WSGICallableObject 'application'
LogLevel info
DocumentRoot /var/www/python/pk/
<Directory /var/www/python/pk/>
WSGIProcessGroup pk
WSGIApplicationGroup %{GLOBAL}
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
<IfDefine MOD_WSGI_LOAD_PYTHON_DYLIB>
LoadFile ''
</IfDefine>
WSGIMapHEADToGET Auto
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question