Advertisement
marwanpro

lighttpd.conf

Mar 2nd, 2015
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. server.modules = (
  2. "mod_access",
  3. "mod_alias",
  4. "mod_compress",
  5. "mod_redirect",
  6. "mod_rewrite",
  7. "mod_fastcgi"
  8. )
  9.  
  10. server.document-root = "/var/www"
  11. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  12. server.errorlog = "/var/log/lighttpd/error.log"
  13. server.pid-file = "/var/run/lighttpd.pid"
  14. server.username = "www-data"
  15. server.groupname = "www-data"
  16. server.port = 80
  17. server.error-handler-404 = "/index.php"
  18.  
  19. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  20. url.access-deny = ( "~", ".inc" )
  21. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  22.  
  23. compress.cache-dir = "/var/cache/lighttpd/compress/"
  24. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  25.  
  26. # default listening port for IPv6 falls back to the IPv4 port
  27. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  28. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  29. include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
  30.  
  31. fastcgi.server = (
  32. ".php" => ((
  33. "bin-path" => "/usr/bin/php5-cgi",
  34. "socket" => "/tmp/php.socket",
  35. "max-procs" => 1,
  36. "bin-environment" => (
  37. "PHP_FCGI_CHILDREN" => "4",
  38. "PHP_FCGI_MAX_REQUESTS" => "1000"
  39. ),
  40. )))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement