1
0

scgi.conf 1.3 KB

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