Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. server.modules = (
  2. "mod_redirect",
  3. "mod_expire",
  4. "mod_access",
  5. "mod_alias",
  6. "mod_compress",
  7. # "mod_rewrite",
  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.  
  17. server.max-fds = 8192
  18. server.max-connections = 4096
  19.  
  20. index-file.names = ( "index.php", "index.html",
  21. "index.htm", "default.htm",
  22. " index.lighttpd.html" )
  23.  
  24. url.access-deny = ( "~", ".inc" )
  25.  
  26. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  27.  
  28. include_shell "/usr/share/lighttpd/use-ipv6.pl"
  29.  
  30. dir-listing.encoding = "utf-8"
  31. server.dir-listing = "enable"
  32.  
  33. compress.cache-dir = "/var/cache/lighttpd/compress/"
  34. compress.filetype = ( "application/x-javascript", "application/javascript", "text/javascript", "text/x-js", "text/css", "text/html", "text/plain" )
  35.  
  36. expire.url = ("/images/" => "access plus 7 days", "/style.css" => "access plus 7 days", "/favicon.ico" => "access plus 7 days")
  37.  
  38. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  39. include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement