File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / lighttpd / doc / config / conf.d / scgi.conf
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 10:32:48 2013 UTC (10 years, 9 months ago) by misho
Branches: lighttpd, MAIN
CVS tags: v1_4_35p0, v1_4_35, v1_4_33, HEAD
1.4.33

#######################################################################
##
##  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",
#      )
#    )
#  )
#}

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>