How to enable WSGI support on a Debian or Ubuntu
Posted: Mon Mar 07, 2016 2:09 am
I found a bug in the WSGI templates when Using Ubuntu.
After followin the steps here - https://vestacp.com/docs/#how-to-enable ... ian-ubuntu
There are some changes that you need to do to the templates
This should show you 3 files
Edit wsgi.stpl
Find the line starting with:
Modify it as follows:
Next, just before the closing VirtualHost, there is a line starting with
Change this line to:
Do similar changes for the wsgi.tmpl file, except use in the WSGIDaemonProcess line.
That should be it, and you should be able to successfully run multi-domain wsgi templates now.
I havn't had a chance to test this on Centos yet, but I'm going to guess the templates are fairly similar
Thnx
Dr@g0nM@st3r
After followin the steps here - https://vestacp.com/docs/#how-to-enable ... ian-ubuntu
There are some changes that you need to do to the templates
Code: Select all
cd /usr/local/vesta/data/templates/web/apache2
ls wsgi.*
Code: Select all
wsgi.sh wsgi.stpl wsgi.tpl
Find the line starting with:
Code: Select all
WSGIDaemonProcess apx-idea user=%user% group=%user%
Code: Select all
WSGIDaemonProcess apx-s$domain% user=%user% group=%user%
Code: Select all
Include %home%/%user%/conf/web/
Code: Select all
IncludeOptional %home%/%user%/conf/web/
Code: Select all
apx-$domain%
That should be it, and you should be able to successfully run multi-domain wsgi templates now.
I havn't had a chance to test this on Centos yet, but I'm going to guess the templates are fairly similar
Thnx
Dr@g0nM@st3r