diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-29 17:53:00 +0000 |
commit | 59f5fd20e2f59ae186d5a461aef7782dd55e4e7b (patch) | |
tree | 10475faf0b6dcb812b64da679f4ae8ff01c45874 /data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/scgi.conf | |
parent | f06e297cd175cca39745f6d1970225ae88aa68f1 (diff) |
Updated lighttpd.
Diffstat (limited to 'data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/scgi.conf')
-rw-r--r-- | data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/scgi.conf | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/scgi.conf b/data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/scgi.conf new file mode 100644 index 000000000..23df3d286 --- /dev/null +++ b/data/lighttpd/lighttpd-1.4.53/doc/config/conf.d/scgi.conf @@ -0,0 +1,51 @@ +####################################################################### +## +## FastCGI Module +## --------------- +## +## See https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModFastCGI +## +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", +# ) +# ) +# ) +#} + +## +####################################################################### |