Skip to content
Permalink
eec33e72b8
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
30 lines (20 sloc) 941 Bytes

#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>