[BangPypers] Configuring web2py to run on apache with Centos5.8

Senthil skksundar at yahoo.co.in
Fri Jul 20 08:26:53 CEST 2012


I have setup web2py, mod_wsgi on a centos5.8 machine to run on apache. 

But i keep getting the 403 forbidden error. Am not sure what am doing wrong here .

Pasting the file that i have included as additional conf, below.

Please help me/ provide some pointers on the same\

<VirtualHost *:80>
  ServerName web2py.example.com
  WSGIDaemonProcess web2py user=apache group=apache \
  WSGIProcessGroup web2py
  WSGIScriptAlias /wpy /root/web2py/web2py/wsgihandler.py

  <Directory /root/web2py/web2py>
    AllowOverride None
    Order Allow,Deny
    Deny from all
    <Files wsgihandler.py>
      Allow from all

  AliasMatch ^/([^/]+)/static/(.*) \
  <Directory /root/web2py/web2py/applications/*/static/>
    Order Allow,Deny
    Allow from all

  <Location /admin>
  Deny from all

  <LocationMatch ^/([^/]+)/appadmin>
  Deny from all

  CustomLog /usr/apache/logs/access.log common
  ErrorLog /usr/apache/logs/error.log

Awaiting your valuable response.

Senthilkumaran Sundaramurthi.

More information about the BangPypers mailing list