blob: f0098b41265b94ac9a36a6ca3748c42e5b55f1da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#
# /etc/nginx/conf.d/pihole.conf
#
# https://github.com/pi-hole/pi-hole/wiki/Nginx-Configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
root /srv/http/pihole;
server_name _;
autoindex off;
index pihole/index.php index.php index.html index.htm;
location / {
expires max;
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include fastcgi.conf;
fastcgi_pass 127.0.0.1:9000;
}
location /*.js {
index pihole/index.js;
}
location /admin {
root /srv/http/pihole;
index index.php index.html index.htm;
}
location ~ /\.ht {
deny all;
}
}
|