Advertisement
Guest User

Untitled

a guest
May 26th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 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.  
  16. index-file.names = ( "index.php", "index.html",
  17. "index.htm", "default.htm",
  18. " index.lighttpd.html" )
  19.  
  20. url.access-deny = ( "~", ".inc" )
  21.  
  22. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  23.  
  24. include_shell "/usr/share/lighttpd/use-ipv6.pl"
  25.  
  26. dir-listing.encoding = "utf-8"
  27. server.dir-listing = "enable"
  28.  
  29. compress.cache-dir = "/var/cache/lighttpd/compress/"
  30. compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" )
  31.  
  32. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  33. include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
  34.  
  35. fastcgi.server = ( ".php" => ((
  36. "bin-path" => "/usr/bin/php5-cgi",
  37. "socket" => "/tmp/php.socket"
  38. )))
  39. $SERVER["socket"] == ":443" {
  40. ssl.engine = "enable"
  41. ssl.pemfile = "/etc/lighttpd/certs/lighttpd.pem"
  42. }
  43. server.modules += ( "mod_auth" )
  44. auth.backend = "htdigest"
  45. auth.backend.htdigest.userfile = "/etc/lighttpd/.auth"
  46. auth.debug = 2
  47. auth.require = ( "/rutorrent/" =>
  48. (
  49. "method" => "digest",
  50. "realm" => "ruTorrent Seedbox",
  51. "require" => "valid-user"
  52. )
  53. )
  54.  
  55. if [ -e /etc/lighttpd/conf-available/10-fastcgi-php5.conf ];
  56. then
  57. /usr/sbin/lighty-enable-mod fastcgi-php5
  58. else
  59. /usr/sbin/lighty-enable-mod fastcgi
  60. fi
  61.  
  62. server.modules += ( "mod_scgi" )
  63. scgi.server = (
  64. "/<UU>0" =>
  65. ( "127.0.0.1" =>
  66. (
  67. "socket" => "/home/hydrog3n/.session/hyd.socket",
  68. "check-local" => "disable",
  69. "disable-time" => 0, # don't disable scgi if connection fails
  70. )
  71. )
  72. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement