diff options
author | Dan Schaper <dschaper@users.noreply.github.com> | 2016-10-30 03:01:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-30 03:01:51 +0300 |
commit | 69e3a45083bd311aecdbc3935986dac5ce64caa8 (patch) | |
tree | 982fbe32cff98cab2cfb5bf2a0a6be74202f5ad6 /advanced/lighttpd.conf.debian | |
parent | 0de74c04486314140e02634bf2677dbaa0656384 (diff) | |
parent | 45259b6ec6cff11c8ac4cabaf3ee87e3e5757fcd (diff) |
Merge pull request #874 from pi-hole/developmentv2.9.5
Next release 2.9.5
Diffstat (limited to 'advanced/lighttpd.conf.debian')
-rw-r--r-- | advanced/lighttpd.conf.debian | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/advanced/lighttpd.conf.debian b/advanced/lighttpd.conf.debian index 8b62f448..15821bc7 100644 --- a/advanced/lighttpd.conf.debian +++ b/advanced/lighttpd.conf.debian @@ -12,6 +12,7 @@ server.modules = ( "mod_access", "mod_accesslog", + "mod_auth", "mod_expire", "mod_compress", "mod_redirect", @@ -52,10 +53,14 @@ $HTTP["url"] =~ "^/admin/" { ) } +# Rewite js requests, must be out of $HTTP block due to bug #2526 +url.rewrite = ( "^(?!/admin/).*\.js$" => "pihole/index.js" ) + # If the URL does not start with /admin, then it is a query for an ad domain $HTTP["url"] =~ "^(?!/admin)/.*" { # Create a response header for debugging using curl -I setenv.add-response-header = ( "X-Pi-hole" => "A black hole for Internet advertisements." ) - # rewrite only js requests - url.rewrite = ("(.*).js" => "pihole/index.js") } + +# Add user chosen options held in external file +include_shell "cat external.conf 2>/dev/null" |