Lighttpd is configured as follows:

server.modules = (
    "mod_access",
    "mod_alias",
    "mod_compress",
     "mod_redirect",
     "mod_rewrite",
     "mod_fastcgi",
     "mod_accesslog",
     "mod_status",
)

server.document-root        = "/var/www"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 8080
server.bind                 = "0.0.0.0"
server.error-handler-404    = "/fgcihandler.fcgi"

index-file.names            = ( "index.html",
                                "index.htm", "default.htm",
                               " index.lighttpd.html" )

url.access-deny             = ( "~", ".inc" , ".py")
accesslog.filename         = "/var/log/lighttpd/access.log"
static-file.exclude-extensions = ( ".php", ".pl", ".py", ".fcgi" )

$HTTP["host"] == "^localhost/cc" {
    url.rewrite-once = (
      "^(/.+?/static/.+)$" => "/applications$1",
      "(^|/.*)$" => "/fcgihandler.fcgi$1",
    )
}

$HTTP["scheme"] == "http" {
    $HTTP["host"] =~ ".*" {
        url.redirect = ("^/ccs/.*" => "https://%0$0";)
    }
}


fastcgi.server = (
  ".fcgi" => (
      "localhost" => ( #name for logs
         "debug" => "1",
         "check-local" => "disable",
         "min-procs" => "1",
         "socket" => "/tmp/fcgi.sock"
      )
   ),
)

----
fcgi handler is started with:
sudo -u www-data python fcgihandler.fcgi 

thanks,
Mike

On Tuesday, February 24, 2015 at 12:24:50 PM UTC-8, Niphlod wrote:
>
> how did you setup lighttpd and fastcgi ?
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to