Hello.
I've made web2py work with lighttpd correctly. It works fine (also the
admin) unitl I keep it in the root of the host, but now I need to have
web2py in a subfolder, because my single lighttpd manages other
applications too. I know I could start more lighttpd instances on
different ports, but that configuration doesn't fit my needs.
I've tried setting the following config, but it always results with an
"Invalid request". I suppose it's due to the uri parsing, but I can't
solve it as I'm quite new to Lighttpd.
Any ideas?

Thanks, Giovanni

url.access-deny += (".py")
$SERVER["socket"] == "0.0.0.0:443" {
        ssl.engine = "enable"
        ssl.pemfile = "/etc/lighttpd/server.pem"
        server.use-sslv2 = "disable"
        accesslog.filename = "/var/log/lighttpd/ssl_access_log"

        $HTTP["url"] =~ "^/w2p/" {
                #server.document-root = "/var/www/lighttpd/web2py/"
                server.dir-listing = "disable"
                server.error-handler-404 = "/w2p/fcgihandler.fcgi"
                alias.url += ( "/w2p/" => "/var/www/lighttpd/
web2py/" )
                fastcgi.server = ( ".fcgi" =>
                   ( "localhost" =>
                      ( "min-procs" => 1,
                         "socket" => "/tmp/web2py.sock",
                         #"strip-request-uri" => "w2p/"
                      )
                    )
                 )
        }
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to