3 Catalyst::Manual::Deployment::lighttpd::FastCGI - Deploying Catalyst with lighttpd
7 These configurations were tested with Lighttpd 1.4.7.
9 =head2 Standalone server mode
11 server.document-root = "/var/www/MyApp/root"
16 "socket" => "/tmp/myapp.socket",
17 "check-local" => "disable"
24 server.document-root = "/var/www/MyApp/root"
29 "socket" => "/tmp/myapp.socket",
30 "check-local" => "disable",
31 "bin-path" => "/var/www/MyApp/script/myapp_fastcgi.pl",
39 Note that in newer versions of lighttpd, the min-procs and idle-timeout
40 values are disabled. The above example would start 5 processes.
42 =head2 Non-root configuration
44 You can also run your application at any non-root location with either of the
45 above modes. Note the required mod_rewrite rule.
47 url.rewrite = ( "myapp\$" => "myapp/" )
56 For more information on using FastCGI under Lighttpd, visit
57 L<http://www.lighttpd.net/documentation/fastcgi.html>
60 =head2 Static file handling
62 Static files can be served directly by lighttpd for a performance boost.
64 $HTTP["url"] !~ "^/(?:img/|static/|css/|favicon.ico$)" {
68 "socket" => "/tmp/myapp.socket",
69 "check-local" => "disable",
75 This will serve everything in the C<img>, C<static>, and C<css>
76 directories statically, as well as the favicon file.
80 Catalyst Contributors, see Catalyst.pm
84 This library is free software. You can redistribute it and/or modify it under
85 the same terms as Perl itself.