X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FCookbook.pod;h=f4b756b9cf8e77aaaeb47181a0bc686ae4ec1cf7;hp=89cc05d5f667474e9680faee13942df4310632c4;hb=3cca83594d8071ecc4bc3bd7307f5144a8de9aca;hpb=31bdf270d8b60455ad48b6ac0d8d5f4ca3ddd05b diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index 89cc05d..f4b756b 100644 --- a/lib/Catalyst/Manual/Cookbook.pod +++ b/lib/Catalyst/Manual/Cookbook.pod @@ -1534,6 +1534,25 @@ This will let all files within root/static be handled directly by Apache. In a two-tiered setup, the frontend server should handle static files. The configuration to do this on the frontend will vary. +The same is accomplished in lighttpd with the following snippet: + + $HTTP["url"] !~ "^/(?:img/|static/|css/|favicon.ico$)" { + fastcgi.server = ( + "" => ( + "MyApp" => ( + "socket" => "/tmp/myapp.socket", + "check-local" => "disable", + ) + ) + ) + } + +Which serves everything in the img, static, css directories +statically, as well as the favicon file. + +Note the pathof the applqication needs to be stated explicitly for +boththese recipes. + =head2 Catalyst on shared hosting So, you want to put your Catalyst app out there for the whole world to