Advertisement
Guest User

lighttpd.conf

a guest
Sep 21st, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 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. mimetype.assign = (
  10. # ".html" => "text/html",
  11. ".txt" => "text/plain",
  12. ".jpg" => "image/jpeg",
  13. ".png" => "image/png",
  14. ".css" => "text/css"
  15. )
  16.  
  17. server.document-root = "/var/www"
  18. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  19. server.errorlog = "/var/log/lighttpd/error.log"
  20. server.pid-file = "/var/run/lighttpd.pid"
  21. server.username = "www-data"
  22. server.groupname = "www-data"
  23. server.port = 80
  24.  
  25. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  26. url.access-deny = ( "~", ".inc" )
  27. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  28.  
  29. compress.cache-dir = "/var/cache/lighttpd/compress/"
  30. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  31.  
  32. # default listening port for IPv6 falls back to the IPv4 port
  33. ## Use ipv6 if available
  34. #include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  35. #include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  36. include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement