From 01d03ebe995beef707b62649e5f8608c5b482e41 Mon Sep 17 00:00:00 2001 From: superpuffin <35958013+superpuffin@users.noreply.github.com> Date: Thu, 29 Aug 2019 13:56:14 +0200 Subject: [PATCH] Fixed code highlighting --- docs/guides/nginx-configuration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guides/nginx-configuration.md b/docs/guides/nginx-configuration.md index 700684e..54d2b85 100644 --- a/docs/guides/nginx-configuration.md +++ b/docs/guides/nginx-configuration.md @@ -15,7 +15,7 @@ `systemctl enable nginx` 6. Edit `/etc/nginx/sites-available/default` to: -``` +```nginx server { listen 80 default_server; listen [::]:80 default_server; @@ -77,11 +77,11 @@ server { - If you want to use your custom domain to access admin page (e.g.: `http://mydomain.internal/admin/settings.php` instead of `http://pi.hole/admin/settings.php`), make sure `mydomain.internal` is assigned to `server_name` in `/etc/nginx/sites-available/default`. E.g.: `server_name mydomain.internal;` - If you want to use block page for any blocked domain subpage (aka Nginx 404), add this to Pi-hole server block in your Nginx configuration file: -``` +```nginx error_page 404 /pihole/index.php; ``` - When using nginx to serve Pi-hole, Let's Encrypt can be used to directly configure nginx. Make sure to use your hostname instead of _ in `server_name _;` line above. -``` +```bash add-apt-repository ppa:certbot/certbot apt-get install certbot python-certbot-nginx