mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-08-26 20:38:37 +02:00
Updated Nginx Configuration (asciidoc)
parent
607b7ce4d5
commit
b8f1e42ee5
@ -14,18 +14,18 @@ server {
|
|||||||
server_name _;
|
server_name _;
|
||||||
autoindex off;
|
autoindex off;
|
||||||
location / {
|
location / {
|
||||||
expires max;
|
expires max;
|
||||||
return 204 'pixel';
|
return 204 'pixel';
|
||||||
}
|
}
|
||||||
location /admin{
|
location /admin {
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
index index.php;
|
index index.php;
|
||||||
auth_basic "Restricted"; #For Basic Auth
|
auth_basic "Restricted"; #For Basic Auth
|
||||||
auth_basic_user_file /etc/nginx/.htpasswd; #For Basic Auth
|
auth_basic_user_file /etc/nginx/.htpasswd; #For Basic Auth
|
||||||
}
|
}
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
include snippets/fastcgi-php.conf;
|
include snippets/fastcgi-php.conf;
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user