hosting with mod_wsgi and apache, all I get is a "403 Forbidden"

211 views
Skip to first unread message

Kai Timmer

unread,
Feb 17, 2015, 4:00:18 AM2/17/15
to bookie_b...@googlegroups.com
Hello,
I want my bookie installation to be hosted with apache and wsgi. My config looks like this:

<VirtualHost ...>
  ServerAdmin webm...@vhost.de
  ServerName www.vhost.de
  ServerAlias vhost.de
  DocumentRoot /var/www/vhost.de
<Directory />
  Options FollowSymLinks
  AllowOverride None
</Directory>
<Directory /var/www/vhost>
  Options FollowSymLinks MultiViews
  AllowOverride All·
  Order allow,deny
  allow from all
</Directory>

  WSGIApplicationGroup %{GLOBAL}
  WSGIPassAuthorization On
  WSGIDaemonProcess pyramid user=www-data group=www-data threads=4 python-path=/opt/Bookie/lib/python2.6/site-packages
  WSGIScriptAlias /bookie /opt/Bookie/pyramid.wsgi

  <Directory /opt/Bookie>
    WSGIProcessGroup pyramid
    Order allow,deny
    Allow from all
  </Directory>
[...]
</VirtualHost>

But when I go to vhost.de/bookie all I get is a 403 with this error:
[Tue Feb 17 09:51:32.180305 2015] [authz_core:error] [pid 1723] [client xx.xx.x.x:55620] AH01630: client denied by server configuration: /opt/Bookie/pyramid.wsgi

What did I miss?


Kai Timmer

unread,
Feb 18, 2015, 2:47:19 AM2/18/15
to bookie_b...@googlegroups.com
Hello again,
I got it working, but my httpd.conf needed to look like this:

  WSGIApplicationGroup %{GLOBAL}
  WSGIPassAuthorization On
  WSGIDaemonProcess pyramid user=www-data group=www-data threads=4 python-path=/opt/Bookie/lib/python2.7/site-packages
  WSGIScriptAlias /bookie /opt/Bookie/pyramid.wsgi

  <Directory /opt/Bookie>
    WSGIProcessGroup pyramid
    #Order allow,deny
    #Allow from all
    Require all granted
  </Directory>

Maybe someone should fix the documentation. I'm running with apache 2.4.7.
Reply all
Reply to author
Forward
0 new messages