SHARE
TWEET

Untitled

a guest Apr 9th, 2015 337 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server.modules = (
  2.         "mod_access",
  3.         "mod_alias",
  4.         "mod_compress",
  5.         "mod_redirect",
  6.         "mod_auth",
  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. server.port                 = 80
  17.  
  18.  
  19. index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
  20. url.access-deny             = ( "~", ".inc" )
  21. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  22.  
  23. compress.cache-dir          = "/var/cache/lighttpd/compress/"
  24. compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
  25.  
  26. # default listening port for IPv6 falls back to the IPv4 port
  27. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  28. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  29. include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
  30.  
  31. # Rewrites all URLs to the /var/www/pihole/index.html
  32. # This should be a blank file (for speed)  
  33.  
  34.  
  35. $HTTP["host"] =~ "hulu" {
  36.      url.redirect = (
  37.         "^/(.*)" => "http://192.168.1.27:8200/MediaItems/19.mov"
  38.      )
  39. } else $HTTP["host"] =~ ".*" {
  40.      url.rewrite = (".*" => "pihole/index.html")
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top