0

I have

evhost.path-pattern = "/home/lighttpd/vhosts/%2/public"

When this pattern hits a certain host, let's say 'foo', I would like to use a fastcgi server. How do I configure just one of my virtual hosts?

So for foo, it should use:

fastcgi.server = ("/myapp"
    ...
)

For all other values of %2, it should do something else (such as default behavior of serving static content).

1 Answers1

1

Just don't use evhost.

$HTTP["host"] =~ "(www\.)?domain\.com" {
    server.document-root = "/foo/bar/baz"
    fastcgi.server = (
        "..."
        ),
    )
}
rodjek
  • 3,297
  • 16
  • 14