1Catalyst::Manual::DeploUysmeerntC:oC:nalttiragilhbytustttpe:dd::M:PaFenaruslatlCD:Go:IcD(ue3mp)elnotyamteinotn::lighttpd::FastCGI(3)
2
3
4

NAME

6       Catalyst::Manual::Deployment::lighttpd::FastCGI - Deploying Catalyst
7       with lighttpd
8

Lighttpd

10       These configurations were tested with Lighttpd 1.4.7.
11
12   Standalone server mode
13           server.document-root = "/var/www/MyApp/root"
14
15           fastcgi.server = (
16               "" => (
17                   "MyApp" => (
18                       "socket"      => "/tmp/myapp.socket",
19                       "check-local" => "disable"
20                   )
21               )
22           )
23
24   Static mode
25           server.document-root = "/var/www/MyApp/root"
26
27           fastcgi.server = (
28               "" => (
29                   "MyApp" => (
30                       "socket"       => "/tmp/myapp.socket",
31                       "check-local"  => "disable",
32                       "bin-path"     => "/var/www/MyApp/script/myapp_fastcgi.pl",
33                       "min-procs"    => 2,
34                       "max-procs"    => 5,
35                       "idle-timeout" => 20
36                   )
37               )
38           )
39
40       Note that in newer versions of lighttpd, the min-procs and idle-timeout
41       values are disabled.  The above example would start 5 processes.
42
43   Non-root configuration
44       You can also run your application at any non-root location with either
45       of the above modes.  Note the required mod_rewrite rule.
46
47           url.rewrite = ( "myapp\$" => "myapp/" )
48           fastcgi.server = (
49               "/myapp" => (
50                   "MyApp" => (
51                       # same as above
52                   )
53               )
54           )
55
56       For more information on using FastCGI under Lighttpd, visit
57       <https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI>
58
59   Static file handling
60       Static files can be served directly by lighttpd for a performance
61       boost.
62
63          $HTTP["url"] !~ "^/(?:img/|static/|css/|favicon.ico$)" {
64                fastcgi.server = (
65                    "" => (
66                        "MyApp" => (
67                            "socket"       => "/tmp/myapp.socket",
68                            "check-local"  => "disable",
69                        )
70                    )
71                )
72           }
73
74       This will serve everything in the "img", "static", and "css"
75       directories statically, as well as the favicon file.
76

AUTHORS

78       Catalyst Contributors, see Catalyst.pm
79
81       This library is free software. You can redistribute it and/or modify it
82       under the same terms as Perl itself.
83
84
85
86perl v5.32.1                Cataly2s0t2:1:-M0a1n-u2a6l::Deployment::lighttpd::FastCGI(3)
Impressum