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=35e008c7229b4441c9c7eb8ae98191eff3f704c3;hb=3cca83594d8071ecc4bc3bd7307f5144a8de9aca;hpb=cb93c9d7a46377666f9593736dcb87fad8f9d82e diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index 35e008c..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 @@ -1669,11 +1688,11 @@ Now, we simply configure Apache to connect to the running server. Alias /_errors /var/www/MyApp/root/error-pages ErrorDocument 502 /_errors/502.html - FastCgiExternalServer /tmp/myapp -socket /tmp/myapp.socket - Alias /myapp/ /tmp/myapp/ + FastCgiExternalServer /tmp/myapp.fcgi -socket /tmp/myapp.socket + Alias /myapp/ /tmp/myapp.fcgi/ # Or, run at the root - Alias / /tmp/myapp/ + Alias / /tmp/myapp.fcgi/ =head3 More Info