Skip to content

Commit

Permalink
Merge pull request #109 from mingaldrichgan/patch-1
Browse files Browse the repository at this point in the history
Add `fastcgi_param FQDN true;` to nginx config
  • Loading branch information
AzureMarker committed Mar 20, 2019
2 parents 6f4f6c1 + 6302be9 commit e467a93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/guides/nginx-configuration.md
Expand Up @@ -34,6 +34,7 @@ server {
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param FQDN true;
auth_basic "Restricted"; #For Basic Auth
auth_basic_user_file /etc/nginx/.htpasswd; #For Basic Auth
}
Expand Down Expand Up @@ -77,7 +78,7 @@ server {

- 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:
```
error_page 404 /pihole/index.php
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.
```
Expand Down

0 comments on commit e467a93

Please sign in to comment.