Wherever I looked I only found advice how to serve static files with
Apache.
Here is the same for lighttpd:
First assign your document root (server.document-root /
simple-vhost.server-root / evhost.path-pattern)
Then, assumed your FastCGI configuration looks like this:
fastcgi.server = (
"" => (
"MyApp" => (
"socket" => "/tmp/myapp.socket",
"check-local" => "disable",
)
)
)
If you want everything in /static to be served by lighttpd directly
enclose the above in
$HTTP["url"] !~ "^/static/" { ... }
Here is a complete example that serves favicon.ico and everything
in /img and /css by lighttpd:
$HTTP["url"] !~ "^/(?:img/|css/|favicon.ico$)" {
fastcgi.server = (
"" => (
"MyApp" => (
"socket" => "/tmp/myapp.socket",
"check-local" => "disable",
)
)
)
}
Enjoy the boost
--
Bernhard Graf
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/