Annotation of embedaddon/lighttpd/doc/config/conf.d/scgi.conf, revision 1.1.1.1
1.1 misho 1: #######################################################################
2: ##
3: ## FastCGI Module
4: ## ---------------
5: ##
6: ## http://www.lighttpd.net/documentation/scgi.html
7: ##
8: server.modules += ( "mod_scgi" )
9:
10: ##
11: ## Ruby on Rails Example
12: ##
13: ## Normally you only run one Rails application on one vhost.
14: ##
15: #$HTTP["host"] == "rails1.example.com" {
16: # server.document-root = server_root + "/rails/someapp/public"
17: # server.error-handler-404 = "/dispatch.fcgi"
18: # scgi.server = ( ".scgi" =>
19: # ("scgi-someapp" =>
20: # ( "socket" => socket_dir + "/someapp-scgi.socket",
21: # "bin-path" => server_root + "/rails/someapp/public/dispatch.scgi",
22: # "bin-environment" => (
23: # "RAILS_ENV" => "production",
24: # "TMP" => home_dir + "/rails/someapp",
25: # ),
26: # )
27: # )
28: # )
29: #}
30:
31: ##
32: ## 2nd Ruby on Rails Example
33: ##
34: ## This time we launch the rails application via scgi_rails externally.
35: ##
36: #$HTTP["host"] == "rails2.example.com" {
37: # server.document-root = server_root + "/rails/someapp/public"
38: # server.error-handler-404 = "/dispatch.scgi"
39: # scgi.server = ( ".scgi" =>
40: # ( "scgi-tcp" =>
41: # (
42: # "host" => "127.0.0.1",
43: # "port" => 9998,
44: # "check-local" => "disable",
45: # )
46: # )
47: # )
48: #}
49:
50: ##
51: #######################################################################
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>