SHARE
TWEET

lighttpd.conf

a guest Apr 8th, 2015 453 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"] =~ "^ads-a-darwin\.hulu\.com$|^ads\.hulu\.com$|^ads\.hulu\.com\.edgesuite\.net$|^ads-v-darwin\.hulu\.com$|^a\.huluad\.com$|^hulu\.112\.2o7\.net$|^huludev\.112\.2o7\.net$|^ll\.a\.hulu\.com$|^t2\.hulu\.com$|^t2\.huluim\.com$|^t-ak\.hulu\.com$|^track\.hulu\.com$|^tw\.i\.hulu\.com$|^urlcheck\.hulu\.com$" {
  36. #$HTTP["host"] =~ "^ads-a-darwin\.hulu\.com$|^ads\.hulu\.com$" {
  37.      url.redirect = (
  38.         "^/(.*)" => "http://192.168.1.27:8200/MediaItems/19.mov"
  39.      )
  40. } else $HTTP["host"] =~ ".*" {
  41.      url.rewrite = (".*" => "pihole/index.html")
  42. }
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