summarylogtreecommitdiffstats
path: root/nginx.pi-hole.conf
diff options
context:
space:
mode:
authorgraysky2017-06-21 16:36:00 -0400
committergraysky2017-06-21 16:36:58 -0400
commita8ac8c3c1de70a2ca8ed035864f26a92f602f204 (patch)
treef0b8513b48490ae514d0d5dce17c0beda96be6ba /nginx.pi-hole.conf
parentf00a4c402f812131ef0d31444e5dad5f331c069c (diff)
downloadaur-a8ac8c3c1de70a2ca8ed035864f26a92f602f204.tar.gz
clean up and use nginx or lighttpd, more to come
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;
+ }
+}