I have installed mod_wsgi global by installing mod_wsgi from source.
See the following link:
https://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html
After that open the following line:
And added the following line:
Save and Exit the file, if you restart the httpd instances within DirectAdmin, they will all have access to mod_wsgi features.
I want to add the following code to httpd template, so i can run Django in Production Mode (mod_wsgi in daemon mode):
See the following link for more information:
https://modwsgi.readthedocs.io/en/develop/user-guides/quick-configuration-guide.html
I want to run Django at a subdomain. (Django is already working)
But when i add the right code to the custom HTTPD template in Directadmin Admin level, i get the following error:
The code is inserted in all other subdomains.
I'm searching for the right tutorial, how i get mod_wsgi inserted in custom httpd templates.
I hope somebody can help me with this, get it working at a subdomain.
See the following link:
https://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html
After that open the following line:
Code:
nano /etc/httpd/conf/extra/httpd-phpmodules.conf
And added the following line:
Code:
LoadModule wsgi_module /usr/lib/apache/mod_wsgi.so
Save and Exit the file, if you restart the httpd instances within DirectAdmin, they will all have access to mod_wsgi features.
I want to add the following code to httpd template, so i can run Django in Production Mode (mod_wsgi in daemon mode):
Code:
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIDaemonProcess ProcessUser threads=25
WSGIProcessGroup ProcessGroup
See the following link for more information:
https://modwsgi.readthedocs.io/en/develop/user-guides/quick-configuration-guide.html
I want to run Django at a subdomain. (Django is already working)
But when i add the right code to the custom HTTPD template in Directadmin Admin level, i get the following error:
Code:
AH00526: Syntax error on line 42 of /usr/local/directadmin/data/users/xxxxxxx/httpd.conf:
Name duplicates previous WSGI daemon definition.
The code is inserted in all other subdomains.
I'm searching for the right tutorial, how i get mod_wsgi inserted in custom httpd templates.
I hope somebody can help me with this, get it working at a subdomain.
Last edited: