Advertisement
Guest User

Lighttpd Redmine Configuration Archlinux

a guest
Jul 4th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. server.modules = (
  2. "mod_access",
  3. "mod_accesslog",
  4. "mod_alias",
  5. "mod_rewrite",
  6. "mod_fastcgi"
  7. )
  8.  
  9. server.port = 80
  10. server.username = "http"
  11. server.groupname = "http"
  12. server.document-root = "/srv/http/"
  13. server.errorlog = "/var/log/lighttpd/error.log"
  14. accesslog.filename = "/var/log/lighttpd/access.log"
  15. dir-listing.activate = "enable"
  16.  
  17. static-file.exclude-extensions = (
  18. ".fcgi",
  19. ".php",
  20. ".rb",
  21. "~",
  22. ".inc"
  23. )
  24. index-file.names = (
  25. "index.html",
  26. "index.php",
  27. "dispatch.fcgi"
  28. )
  29.  
  30. mimetype.assign = (
  31. ".pdf" => "application/pdf",
  32. ".sig" => "application/pgp-signature",
  33. ".spl" => "application/futuresplash",
  34. ".class" => "application/octet-stream",
  35. ".ps" => "application/postscript",
  36. ".torrent" => "application/x-bittorrent",
  37. ".dvi" => "application/x-dvi",
  38. ".gz" => "application/x-gzip",
  39. ".pac" => "application/x-ns-proxy-autoconfig",
  40. ".swf" => "application/x-shockwave-flash",
  41. ".tar.gz" => "application/x-tgz",
  42. ".tgz" => "application/x-tgz",
  43. ".tar" => "application/x-tar",
  44. ".zip" => "application/zip",
  45. ".mp3" => "audio/mpeg",
  46. ".m3u" => "audio/x-mpegurl",
  47. ".wma" => "audio/x-ms-wma",
  48. ".wax" => "audio/x-ms-wax",
  49. ".ogg" => "application/ogg",
  50. ".wav" => "audio/x-wav",
  51. ".gif" => "image/gif",
  52. ".jpg" => "image/jpeg",
  53. ".jpeg" => "image/jpeg",
  54. ".png" => "image/png",
  55. ".xbm" => "image/x-xbitmap",
  56. ".xpm" => "image/x-xpixmap",
  57. ".xwd" => "image/x-xwindowdump",
  58. ".css" => "text/css",
  59. ".html" => "text/html",
  60. ".htm" => "text/html",
  61. ".js" => "text/javascript",
  62. ".asc" => "text/plain",
  63. ".c" => "text/plain",
  64. ".cpp" => "text/plain",
  65. ".log" => "text/plain",
  66. ".conf" => "text/plain",
  67. ".text" => "text/plain",
  68. ".txt" => "text/plain",
  69. ".rb" => "text/x-ruby",
  70. ".dtd" => "text/xml",
  71. ".xml" => "text/xml",
  72. ".mpeg" => "video/mpeg",
  73. ".mpg" => "video/mpeg",
  74. ".mov" => "video/quicktime",
  75. ".qt" => "video/quicktime",
  76. ".avi" => "video/x-msvideo",
  77. ".asf" => "video/x-ms-asf",
  78. ".asx" => "video/x-ms-asf",
  79. ".wmv" => "video/x-ms-wmv",
  80. ".bz2" => "application/x-bzip",
  81. ".tbz" => "application/x-bzip-compressed-tar",
  82. ".tar.bz2" => "application/x-bzip-compressed-tar"
  83. )
  84.  
  85. fastcgi.server = ( ".php" => ((
  86. "bin-path" => "/usr/bin/php-cgi -c /etc/php.ini",
  87. "socket" => "/var/run/lighttpd/php.socket",
  88. "max-procs" => 1,
  89. "idle-timeout" => 20,
  90. "bin-copy-environment"=> (
  91. "PATH", "SHELL", "USER"
  92. ),
  93. "bin-environment" => (
  94. "PHP_FCGI_CHILDREN" => "2",
  95. "PHP_FCGI_MAX_REQUESTS" => "50000"
  96. ),
  97. "broken-scriptfilename" => "enable"
  98. )))
  99.  
  100. $HTTP["url"] =~ "^/redmine/" {
  101. alias.url = ("/redmine" => "/srv/http/redmine/public")
  102. server.document-root = "/srv/http/redmine/public"
  103. server.error-handler-404 = "/redmine/dispatch.fcgi"
  104. index-file.names = (
  105. "dispatch.fcgi"
  106. )
  107. # Change *-procs to 2 if you need to use Upload Progress or other tasks that
  108. # *need* to execute a second request while the first is still pending.
  109. fastcgi.server += (
  110. ".fcgi" => (
  111. "localhost" => (
  112. "min-procs" => 1,
  113. "max-procs" => 1,
  114. "check-local" => "disable",
  115. "socket" => "/var/run/lighttpd/redmine.socket",
  116. "bin-path" => "/srv/http/redmine/public/dispatch.fcgi",
  117. "bin-environment" => (
  118. "RAILS_ENV" => "production",
  119. "RAILS_RELATIVE_URL_ROOT" => "/redmine"
  120. )
  121. )
  122. )
  123. )
  124. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement