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