ok. now I'm at invalid request level. below I attach my config file. I would appreciate pointing what's wrong with that:
<VirtualHost *:80> ServerName nexus.ibb.waw.pl WSGIDaemonProcess web2py user=www-data group=www-data \ display-name=%{GROUP} WSGIProcessGroup web2py WSGIScriptAlias / /var/www/web2py/wsgihandler.py <Directory /var/www/web2py> AllowOverride None Order Allow,Deny Deny from all <Files wsgihandler.py> Allow from all </Files> </Directory> AliasMatch ^/([^/]+)/static/(.*) \ /var/www/web2py/applications/$1/static/$2 <Directory /var/www/web2py/applications/*/static/> Order Allow,Deny Allow from all </Directory> <Location /admin> Deny from all </Location> <LocationMatch ^/([^/]+)/appadmin> Deny from all </LocationMatch> CustomLog /var/log/apache2/access.log common ErrorLog /var/log/apache2/error.log </VirtualHost> W dniu sobota, 19 maja 2012 19:03:45 UTC+2 użytkownik Jonathan Lundell napisał: > > On May 19, 2012, at 9:58 AM, Marian Siwiak wrote: > > Ok. That was helpful. Probably problem is with configuration in > /etc/apache2/sites-available > > one question - online book says to make special web2py file, while > cookbook says to modify default file. > neither of 2 approaches seem to work... is there anything wrong with those > examples they presented? > > > Either way should work, as long as sites-enabled is linked to the right > one. It depends on your overall configuration and how you have virtual > servers set up, but in the simplest case you don't want sites-enabled to > link to both web2py and default configurations, because they're likely to > be in conflict. > > I'm guessing that your other problem is related to telling Apache which > URLs are to be handled by mod_wsgi and/or pointing mod_wsgi to the right > path to the handler. > > > Marian > > W dniu sobota, 19 maja 2012 18:41:04 UTC+2 użytkownik Niphlod napisał: >> >> it seems that apache doesn'0t understand to pass page rendering to >> mod_wsgi and instead offers the default behaviour (list and send file). >> >> Without further details it's quite impossible make some other >> assumptions... >> >> Il giorno sabato 19 maggio 2012 17:28:26 UTC+2, Marian Siwiak ha scritto: >>> >>> Hello again, >>> >>> I have a problem with deploying my application. >>> I have set up apache2 server with mod_wsgi on my machine (It runs on >>> debian 6.0.4). >>> The change I made was to use /var/ww instead of /users/www-data folder. >>> Everything went smoothly, as described in web2py online book, but when >>> typing www.myserver.pl/path/to/my/application in my browser I get a >>> list of files instead of application index page. Any suggestions where to >>> search for the problem (except PEBCAK)? >>> >>> best regards and thanks in advance, >>> Marian >>> >> > >