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

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


Hi,

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 \
                           display-name=%{GROUP}
  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
    </Files>
  </Directory>

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

  <Location /admin>
  Deny from all
  </Location>

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

  CustomLog /usr/apache/logs/access.log common
  ErrorLog /usr/apache/logs/error.log
</VirtualHost>


Awaiting your valuable response.

Thanks.
Regards,
Senthilkumaran Sundaramurthi.


More information about the BangPypers mailing list