Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- root /var/www/html;
- server_name betavpn.tk;
- autoindex off;
- index pihole/index.php index.php index.html index.htm;
- location / {
- expires max;
- try_files $uri $uri/ =404;
- }
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/run/php/php7.0-fpm.sock;
- # 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;
- }
- error_page 404 /index.php;
- location = /index.php {
- root /var/www/html/pihole;
- internal;
- }
- listen [::]:443 ssl ipv6only=on; # managed by Certbot
- listen 443 ssl; # managed by Certbot
- ssl_certificate /etc/letsencrypt/live/betavpn.tk/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/betavpn.tk/privkey.pem; # managed by Certbot
- include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
- }
- server {
- if ($host = betavpn.tk) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name betavpn.tk;
- return 404; # managed by Certbot
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement