lighttpd.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. var.log_root = "/var/log/lighttpd"
  2. var.server_root = "/var/www"
  3. var.state_dir = "/var/run"
  4. var.home_dir = "/var/lib/lighttpd"
  5. var.conf_dir = "/etc/lighttpd"
  6. var.vhosts_dir = server_root + "/vhosts"
  7. var.cache_dir = "/var/cache/lighttpd"
  8. var.socket_dir = home_dir + "/sockets"
  9. server.port = 443
  10. #server.username = "root"
  11. #server.groupname = "root"
  12. server.document-root = server_root + "/"
  13. server.pid-file = state_dir + "/lighttpd.pid"
  14. server.errorlog = log_root + "/error.log"
  15. server.event-handler = "linux-sysepoll"
  16. server.max-fds = 2048
  17. server.stat-cache-engine = "simple"
  18. server.max-connections = 1024
  19. server.follow-symlink = "enable"
  20. server.upload-dirs = ( "/mnt" )
  21. server.max-request-size = 131072 #128M
  22. #ssl.engine = "enable"
  23. #ssl.pemfile = "/etc/lighttpd/ssl/lighttpd.pem"
  24. #ssl.pemfile = "/etc/lighttpd/ssl/server.pem"
  25. #ssl.privkey= "/etc/lighttpd/ssl/privkey.pem"
  26. index-file.names += ( "index.xhtml", "index.html", "index.htm", "default.htm", "index.php" )
  27. url.access-deny = ( "~", ".inc" )
  28. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  29. include "modules.conf"
  30. include "conf.d/mime.conf"
  31. include "conf.d/dirlisting.conf"
  32. include "conf.d/access_log.conf"
  33. include "conf.d/debug.conf"
  34. include "conf.d/ssl.conf"