I've found the problem. I had added an erroneus wsgihandler.py to the
Directory tag.
Now my problem is:

[Wed Feb 08 16:04:26 2012] [error]   File "D:/LAVORO/Software/Web/
web2py_src/web2py/wsgihandler.py", line 25, in <module>
[Wed Feb 08 16:04:26 2012] [error]     import os
[Wed Feb 08 16:04:26 2012] [error] ImportError: No module named os

On 8 Feb, 15:52, giovanni allegri <[email protected]> wrote:
> I have to run web2py on a Windows dev server (before moving the app to
> a Linux box!)
> I've tried to setup the minimal apache conf:
>
> WSGIScriptAlias / path_to_web2py\wsgihandler.py
>   <Directory path_to_web2py\wsgihandler.py>
>     AllowOverride None
>     Order Allow,Deny
>     Deny from all
>     <Files wsgihandler.py>
>       Allow from all
>     </Files>
>   </Directory>
>
>   AliasMatch ^/([^/]+)/static/(.*) path_to_web2py\applications\
> $1\static\$2
>   <Directory path_to_web2py\applications\*\static\>
>     Order Allow,Deny
>     Allow from all
>   </Directory>
>
>   <Location /admin>
>   Deny from all
>   </Location>
>
>   <LocationMatch ^/([^/]+)/appadmin>
>   Deny from all
>   </LocationMatch>
>
> (path_to_web2py is obviously an obscured path for my real physical
> path)
>
> I will study the problem of moving web2py to a sublocation (I can't
> keep it to the server root), but alos this first configuration doesn't
> work for me.
> If I browse tohttp://localhost/, I expect to see the default
> applications, instead I get an Access Denied.
> The Apache error.log says:
>
> [error] [client 127.0.0.1] client denied by server configuration:
> path_to_web2py/wsgihandler.py
>
> What am I doing wrong?
> giovanni

Reply via email to