Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
CoNekT/docs/apache_wsgi.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (20 sloc)
941 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Setting up mod_wsgi with Apache | |
Install apache and mod_wsgi for python 3 | |
sudo apt-get install apache2 libapache2-mod-wsgi-py3 | |
Copy `conekt.template.wsgi` to conekt.wsgi and add the correct paths. | |
WSGI_PATH = 'location of your app' | |
WSGI_ENV = 'location of activate_this.py, in the bin folder of the virtual environment' | |
Configure apache, example below can be added to the default VirtualHost. A valid user (non-admin), usually www-data, is required for this: | |
# This part is optional, but will improve speed | |
Alias /planet/static /path/to/conekt/conekt/static | |
<Directory /path/to/conekt/conekt/static> | |
Require all granted | |
</Directory> | |
# Set up WSGI | |
WSGIDaemonProcess application user=user group=user threads=5 | |
WSGIScriptAlias /planet /path/to/conekt.wsgi | |
<Location /conekt> | |
WSGIProcessGroup application | |
WSGIApplicationGroup %{GLOBAL} | |
Require all granted | |
</Location> | |