You are not logged in.

#1 2011-08-04 05:34:01

maddog39
Member
From: Philadelphia, PA
Registered: 2007-06-03
Posts: 73
Website

Lighttpd exits without error

Hey everyone,

I'm stumped by a bazaar issue with lighty that doesn't seem to be documented elsewhere. I am attempting to use the following server config excerpt:

# Virtual Hosts
$HTTP["host"] == "trac.domain.com" {
       server.document-root = "/srv/trac/madsoft/htdocs"
       server.errorlog = "/srv/http/domain/logs/error.log"
       accesslog.filename = "/srv/http/domain/logs/access.log"

       fastcgi.server = (
               "/" => (
                       "trac" => (
                               "bin-path" => "/srv/trac/domain/cgi-bin/trac.fcgi",
                               "socket" => "/tmp/trac_domain.sock",
                               "check-local" => "false",
                               "min-procs" => "1",
                               "max-procs" => "1",
                               "fix-root-scriptname" => "enable"
                       )
               )
       )

       auth.backend = "plain"
       auth.backend.htpasswd.userfile = "/srv/trac/domain/passwd"

       $HTTP["url"] =~ "^/.*/login$" {
               auth.require = (
                       "/" => (
                               "method" => "basic",
                               "realm" => "Test Trac",
                               "require" => "valid-user"
                       )
               )
       }
}
else $HTTP["host"] =~ "(^|\.)domain\.com$" {
        server.document-root = "/srv/http/domain/public_html"
        server.errorlog = "/srv/http/domain/logs/error.log"
        accesslog.filename = "/srv/http/domain/logs/access.log"
        url.rewrite-once = (
                "^(/wp-content.*)$" => "$1",
                "^(/wp-includes.*)$" => "$1",
                "^(/wp-admin.*)$" => "$1",
                "^/(.*.php)" => "$0",
                "/(.+)" => "/index.php?/$1"
        )
}

Everything work perfectly fine until I tried to add the subdomain for trac and its associated rules. Once I did that, lighty would no longer start and simply exits with no error message when running:

sudo lighttpd -D -f /etc/lighttpd/lighttpd.conf

It just returns to the prompt and to confirm that it hasn't actually started, I check the process list and lighttpd is no where to be found. I've tried what I believe to be almost every possible combination of this config and can not get it to work and what stumps me even more is that I am using another vhost which is similar to style to these two (subdomain, else, primary domain) and that works pefectly fine but seems to completely reject this one. In addition, running the lighttpd command with the -t flag reports that the configs syntax is OK.

Any thoughts would be greatly appreciated.

Thanks
Alec

Last edited by maddog39 (2011-08-04 05:34:18)

Offline

Board footer

Powered by FluxBB