summarylogtreecommitdiffstats
path: root/nginx.pi-hole.conf
diff options
context:
space:
mode:
authormax.bra2017-11-02 12:22:09 +0100
committermax.bra2017-11-02 12:22:09 +0100
commit688e6f6cbdd019356c4ffb4177bb2557510ae2b8 (patch)
treec54eb5ac76e4cea85b8ebfe63b6a88657d802181 /nginx.pi-hole.conf
parent033d32553be8c531fe36a4f0a1645b096f0617e3 (diff)
downloadaur-688e6f6cbdd019356c4ffb4177bb2557510ae2b8.tar.gz
more nginx config
Diffstat (limited to 'nginx.pi-hole.conf')
-rw-r--r--nginx.pi-hole.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/nginx.pi-hole.conf b/nginx.pi-hole.conf
index f0098b41265b..36da1dcfdffe 100644
--- a/nginx.pi-hole.conf
+++ b/nginx.pi-hole.conf
@@ -12,16 +12,22 @@ server {
server_name _;
autoindex off;
+ proxy_intercept_errors on;
+ error_page 404 /pihole/index.php;
+
index pihole/index.php index.php index.html index.htm;
location / {
expires max;
try_files $uri $uri/ =404;
+ add_header X-Pi-hole "A black hole for Internet advertisements";
}
location ~ \.php$ {
include fastcgi.conf;
+ fastcgi_intercept_errors on;
fastcgi_pass 127.0.0.1:9000;
+ fastcgi_param SERVER_NAME $host;
}
location /*.js {
@@ -31,6 +37,8 @@ server {
location /admin {
root /srv/http/pihole;
index index.php index.html index.htm;
+ add_header X-Pi-hole "The Pi-hole Web interface is working!";
+ add_header X-Frame-Options "DENY";
}
location ~ /\.ht {