Hi,
I installed klaus via pip on ubuntu server.
Following the topic "Apache mod_wsgi deployment", I get 403 problems accessing the configured url, by I don't know why:
apache-site:
<VirtualHost myserver:80>
[...]
ServerName myserver
Redirect permanent /git
https://myserver/git <Location />
Order Deny,Allow
Allow from all
</Location>
[...]
</VirtualHost>
<VirtualHost myserver:443>
[...]
WSGIPassAuthorization On
WSGIScriptAlias /git /var/opt/klaus/wsgi.py
WSGIDaemonProcess myserver user=www-data processes=2 threads=4 display-name=%{GROUP}
WSGIProcessGroup myserver
[...]
</VirtualHost>
The wsgi.py:
import site
site.addsitedir('/usr/local/lib/python2.7/site-packages')
TITLE = u"Unimed Git Repositories"
REPOSITORIES = [
"/git/home/rep/App1",
"/git/home/rep/App2",
]
from klaus import make_app
HTDIGEST = open("/var/opt/klaus/klaus-users")
application = make_app(REPOSITORIES, TITLE, True, HTDIGEST)
By the way: what mod_wsgi library do I need to install ? (it seems to run, because there are two threads as configured in wsgi.py):
libapache2-mod-wsgi - WSGI-Adapter für Apache (Python-Modul)
libapache2-mod-ruwsgi - uwsgi module for Apache2 (mod_Ruwsgi)
libapache2-mod-uwsgi - uwsgi module for Apache2 (mod_uwsgi)
libapache2-mod-wsgi-py3 - Python 3 WSGI adapter module for Apache
I installed first, however, it seems that klaus is built upon python 2.6 or 2.7.