apache2 deployment -> 403 Forbidden

23 views
Skip to first unread message

Thomas Jodes

unread,
Jan 6, 2015, 4:33:39 AM1/6/15
to klaus...@googlegroups.com
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.

Jonas H.

unread,
Jan 6, 2015, 6:46:35 AM1/6/15
to klaus...@googlegroups.com
On 06 Jan 2015, at 10:33, Thomas Jodes <thomas...@gmail.com> wrote:
>
> 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:

Hm, not an Apache expert, maybe the logs have some more info?
Reply all
Reply to author
Forward
0 new messages