Advertisement
ex_rat

lighttpd.conf

Jan 28th, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.79 KB | None | 0 0
  1. server.modules = (
  2.     "mod_access",
  3.     "mod_alias",
  4.     "mod_compress",
  5.     "mod_redirect",
  6. #       "mod_rewrite",
  7. )
  8.  
  9. server.document-root        = "/var/www"
  10. server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
  11. server.errorlog             = "/var/log/lighttpd/error.log"
  12. server.pid-file             = "/var/run/lighttpd.pid"
  13. server.username             = "www-data"
  14. server.groupname            = "www-data"
  15. server.port                 = 80
  16.  
  17. index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
  18. url.access-deny             = ( "~", ".inc" )
  19. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  20.  
  21. compress.cache-dir          = "/var/cache/lighttpd/compress/"
  22. compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
  23.  
  24. # default listening port for IPv6 falls back to the IPv4 port
  25. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  26. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  27. include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
  28. fastcgi.server = ( ".php" => ((
  29.                      "bin-path" => "/usr/bin/php5-cgi",
  30.                      "socket" => "/tmp/php.socket"
  31.                  )))
  32. $SERVER["socket"] == ":443" {
  33. ssl.engine = "enable"
  34. ssl.pemfile = "/etc/lighttpd/certs/lighttpd.pem"
  35. }
  36. server.modules += ( "mod_auth" )
  37. auth.backend = "htdigest"
  38. auth.backend.htdigest.userfile = "/etc/lighttpd/.auth"
  39. auth.debug = 2
  40. auth.require = ( "/rutorrent/" =>
  41. (
  42. "method" => "digest",
  43. "realm" => "ruTorrent Seedbox",
  44. "require" => "valid-user"
  45. ),
  46. )
  47. server.modules += ( "mod_scgi" )
  48. scgi.server = (
  49. "/FRA0" =>
  50. ( "127.0.0.1" =>
  51. (
  52. "socket" => "/home/franck/.session/fra.socket",
  53. "check-local" => "disable",
  54. "disable-time" => 0,  # don't disable scgi if connection fails
  55. )
  56. ),
  57. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement