JarekMk

lighty-cnf

Mar 21st, 2011
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 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 = "/srv/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. #dodane
  17. server.port = 80
  18. server.bind = "78.47.156.240"
  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", "text/css", "text/html", "text/plain; charset=utf-8" )
  35. compress.allowed-encodings = ("bzip2", "gzip", "deflate")
  36.  
  37. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  38. include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
  39.  
  40. #Inne
  41. include "/etc/lighttpd/vhost.cnf/dc-1.tk.conf"
  42. include "/etc/lighttpd/vhost.cnf/pomysl.tk.conf"
  43.  
  44. #SafeGroup
  45. include "/etc/lighttpd/vhost.cnf/safegroup.pl.conf"
  46. include "/etc/lighttpd/vhost.cnf/forum.safegroup.pl.conf"
  47. include "/etc/lighttpd/vhost.cnf/img.safegroup.pl.conf"
  48. include "/etc/lighttpd/vhost.cnf/v2.safegroup.pl.conf"
  49.  
  50.  
  51. $HTTP["url"] =~ "\.(jpg|gif|png|css|js)$" {
  52. expire.url = ( "" => "access 7 days" )
  53. }
Advertisement
Add Comment
Please, Sign In to add comment