try this config

server.modules              = (
                                "mod_rewrite",
                                "mod_access",
                                "mod_fastcgi",
                                "mod_simple_vhost",
                                "mod_accesslog" )



$HTTP["host"] == "virtualweb2pyhost {

server.document-root = "/data/inetpub/web2py"
server.dir-listing      = "disable"
server.error-handler-404 = "/fcgihandler.fcgi"
fastcgi.server             = ( ".fcgi" =>
                               ( "localhost" =>
                                 ( "min-procs" => 1,
                                   "socket" => "/tmp/fcgi.sock",
                                 )
                               )
                            )
}

make sure, that the file /tmp/fcgi.sock is owned by the user that runs
the lighttpd daemon.
so if http is the process that runs lighttpd, then you must start
fcgihandler.py in a separate terminal window like this
sudo -u http python fcgihandler.py

Once this is running, then, lighttpd will automatically forward its
request to this and get back results.

another frequent problems are rights to the various sub directories of
web2py.
make sure that the webserver user has rights to the web2py directory
and its subdirectories.

Arvind

On Sep 8, 4:28 am, Vidul Petrov <[email protected]> wrote:
> Hi all,
>
> I didn't manage to configure Web2py with this web server (each step
> was followed and the only result was directory listing, of course when
> enabled).
>
> Here is the configuration file:
>
> server.modules              = (
>             "mod_fastcgi",
>             "mod_rewrite"
> )
> ...
> server.document-root       = "/tmp/web2py/"
> ...
> fastcgi.server = ( ".fcgi" => ("localhost" => ("min-procs" => 1,
> "socket" => "/tmp/fcgi.sock" )))
> ...
>
> Of course I start fcgihandler.py before the restart of lighttp.
>
> Any ideas?
>
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to