Since there was absolutely no response to my original post, I'll assume no one
ever attempted to configure Lighttpd to host the SOGo Web UI.  So after
considerable head scratching and several false starts I am proud to share a
step-by-step for the next rookie who asks.
See my reply to my other unanswered post
https://inverse.ca/sogo/lists/arc/users/2011-11/msg00281.html for a working
Squeeze/Armel port install.

lighttpd-enable-mod fastcgi
lighttpd-enable-mod fastcgi-php
lighttpd-enable-mod proxy

Edit /etc/lighttpd/lighttpd.conf and append the following:

$SERVER["socket"] == ":80" {
        # The following regex works but isn't the cleanest way to limit the url
to only "/SOGo" or "/SOGo/".
        # I'd appreciate any help in defining a regex that does work as
intended AND allows for case-insensitivity?
        url.redirect = ( "^/SOGo/?(.*)$" =>
"https://your.host.whatever/SOGo/$1"; )
}

$SERVER["socket"] == ":443" {
        ssl.engine = "enable"
        ssl.pemfile = "/etc/ssl/private/lighttpd.pem"
        ssl.ca-file = "/etc/ssl/certs/lighttpd.pem"
        #auth.backend = "htpasswd"
        #auth.backend.htpasswd.userfile = "/etc/lighttpd/.htpasswd"
        $HTTP["host"] == "10.10.1.31" {
                alias.url = ( "/SOGo.woa/WebServerResources/" =>
                               
"/usr/local/lib/GNUstep/SOGo/WebServerResources/" )
                alias.url += ( "/SOGo/WebServerResources/" =>
                               
"/usr/local/lib/GNUstep/SOGo/WebServerResources/" )
                $HTTP["url"] =~ "^/SOGo/(.*)" {
                        proxy.server = (
                          "/SOGo/" => (
                             "host" => (
                                "host" => "127.0.0.1",
                                "port" => 20000
                             )
                          )
                        )
                        #auth.require = ( "" => ( "method" => "basic",
                        #  "realm" => "SOGO",
                        #  "require" => "valid-user" ) )
                }
        }
}

service lighttpd restart
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to