summaryrefslogtreecommitdiff
path: root/package/lighttpd/files/conf.d/scgi.conf
blob: 3fcf280f2ae98182187e9284407bd5717af74d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#######################################################################
##
##  FastCGI Module 
## --------------- 
##
## http://www.lighttpd.net/documentation/scgi.html
##
server.modules += ( "mod_scgi" )

##
## Ruby on Rails Example
##
## Normally you only run one Rails application on one vhost.
##
#$HTTP["host"] == "rails1.example.com" {
#  server.document-root  = server_root + "/rails/someapp/public"
#  server.error-handler-404 = "/dispatch.fcgi"
#  scgi.server = ( ".scgi" =>
#    ("scgi-someapp" =>
#      ( "socket" => socket_dir + "/someapp-scgi.socket",
#        "bin-path" => server_root + "/rails/someapp/public/dispatch.scgi",
#        "bin-environment" => (
#              "RAILS_ENV" => "production",
#              "TMP" => home_dir + "/rails/someapp",
#        ),
#      )
#    )
#  )
#}

##
## 2nd Ruby on Rails Example
##
## This time we launch the rails application via scgi_rails externally. 
##
#$HTTP["host"] == "rails2.example.com" {
#  server.document-root  = server_root + "/rails/someapp/public"
#  server.error-handler-404 = "/dispatch.scgi"
#  scgi.server = ( ".scgi" =>
#    ( "scgi-tcp" =>
#      (
#        "host" => "127.0.0.1",
#        "port" => 9998,
#        "check-local" => "disable",
#      )
#    )
#  )
#}

##
#######################################################################