Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. server.document-root = "/my/document/root/"
  2.  
  3. server.port = 61234
  4.  
  5. #https://redmine.lighttpd.net/projects/1/wiki/Docs_ModDirlisting
  6. dir-listing.activate = "enable"
  7. dir-listing.encoding = "utf-8"
  8. dir-listing.show-readme = "enable"
  9. dir-listing.external-css = "/slides/dir.css"
  10. #We want to see dotfiles. Users might want to share their config files. This is the default, but we make it explicit
  11. dir-listing.hide-dotfiles = "disable"
  12.  
  13.  
  14. #Don't allow network or internet access. Local is enough for apache htaccess proxy
  15. server.bind = "localhost"
  16.  
  17. mimetype.assign = (
  18. ".html" => "text/html",
  19. ".txt" => "text/plain",
  20. ".jpg" => "image/jpeg",
  21. ".png" => "image/png",
  22. ".gif" => "image/gif",
  23. ".pdf" => "application/pdf",
  24. ".js" => "application/javascript",
  25. ".css" => "text/css",
  26. ".svg" => "image/svg+xml",
  27. ".mp3" => "audio/mpeg",
  28. ".ogg" => "audio/ogg",
  29. ".opus" => "audio/ogg",
  30. ".flac" => "audio/flac",
  31. ".wav" => "audio/x-wav",
  32. )
  33.  
  34. #Work around problems with larger PDF files
  35. $HTTP["url"] =~ "\.(?i:pdf)$" {
  36. server.range-requests = "disable"
  37. }
  38.  
  39. static-file.exclude-extensions = ( ".fcgi", ".php", ".rb", "~", ".inc", ".py", "ini", )
  40. index-file.names = ( "index.html", "index.pdf")
  41.  
  42. #No. error is error.
  43. #server.error-handler-404 = "/new.html"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement