-
Notifications
You must be signed in to change notification settings - Fork 7
Configuring qbank with Apache
cjshawMIT edited this page Apr 28, 2017
·
5 revisions
This page walks through how we configure qbank
to work with mod_wsgi
and Apache 2.4. You should be able to set up qbank
similarly with other configurations, like uwsgi
and nginx
, but you will have to figure out the details.
Instead of using the code on the master
branch, you can use the code on the feature/cs/ec2
branch. There are two main changes in main.py
:
We basically follow the examples given in the web.py
documentation, here. The relevant parts of our config are below, for reference:
WSGIScriptAlias / /var/www/webapps/qbank-lite/main.py/
AddType text/html .py
<Directory /var/www/webapps/qbank-lite>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
You can try the documentation provided on the web.py
site.