summarylogtreecommitdiffstats
path: root/nginx.pi-hole.conf
diff options
context:
space:
mode:
Diffstat (limited to 'nginx.pi-hole.conf')
-rw-r--r--nginx.pi-hole.conf26
1 files changed, 26 insertions, 0 deletions
diff --git a/nginx.pi-hole.conf b/nginx.pi-hole.conf
new file mode 100644
index 000000000000..51d02f316830
--- /dev/null
+++ b/nginx.pi-hole.conf
@@ -0,0 +1,26 @@
+# place in /etc/nginx/conf.d/pi_hole.conf
+
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ server_name _;
+
+ root /srv/http/pihole/admin;
+ index index.php;
+
+ location / {
+ try_files $uri $uri/ /index.php;
+ }
+
+ location ~ /\. {
+ deny all;
+ }
+
+ location ~ \.php$ {
+ fastcgi_param HTTP_HOST localhost;
+ fastcgi_param HTTP_ORIGIN localhost;
+ fastcgi_pass 127.0.0.1:9000;
+ fastcgi_index index.php;
+ include fastcgi.conf;
+ }
+}