42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
|
server {
|
||
|
listen 31415;
|
||
|
listen [::]:31415;
|
||
|
|
||
|
root /var/www/html;
|
||
|
server_name dns.shoebottom.ca;
|
||
|
autoindex off;
|
||
|
|
||
|
index pihole/index.php index.php index.html index.htm;
|
||
|
|
||
|
location / {
|
||
|
expires max;
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
|
||
|
location ~ \.php$ {
|
||
|
include fastcgi_params;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
||
|
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
|
||
|
fastcgi_param FQDN true;
|
||
|
# auth_basic "Restricted"; # For Basic Auth
|
||
|
# auth_basic_user_file /etc/nginx/.htpasswd; # For Basic Auth
|
||
|
}
|
||
|
|
||
|
location /*.js {
|
||
|
index pihole/index.js;
|
||
|
# 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 index.html index.htm;
|
||
|
# auth_basic "Restricted"; # For Basic Auth
|
||
|
# auth_basic_user_file /etc/nginx/.htpasswd; # For Basic Auth
|
||
|
}
|
||
|
|
||
|
location ~ /\.ht {
|
||
|
deny all;
|
||
|
}
|
||
|
}
|