Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fastcgi_param FQDN true; to nginx config #109

Merged
merged 1 commit into from Mar 20, 2019
Merged

Add fastcgi_param FQDN true; to nginx config #109

merged 1 commit into from Mar 20, 2019

Conversation

mingaldrichgan
Copy link
Contributor

This adds the $serverName to the list of $authorizedHosts allowed to see the splash page, and should be equivalent to setenv.add-environment = ("fqdn" => "true") in lighttpd as suggested in the Discourse FAQs. Without this, you could still visit /admin directly, but / (or any other page if error_page 404 /pihole/index.php is added as suggested below) would show [ERROR]: Unable to parse results from queryads.php: Unhandled error message ().

This [adds the `$serverName` to the list of `$authorizedHosts`](https://github.com/pi-hole/pi-hole/blob/master/advanced/index.php#L26-L31) allowed to see the splash page, and should be equivalent to `setenv.add-environment = ("fqdn" => "true")` in lighttpd as [suggested in the Discourse FAQs](https://discourse.pi-hole.net/t/enabling-https-for-your-pi-hole-web-interface/5771). Without this, you could still visit `/admin` directly, but `/` (or any other page if `error_page 404 /pihole/index.php` is added as suggested below) would show [`[ERROR]: Unable to parse results from queryads.php: Unhandled error message ()`](pi-hole/pi-hole#2195).

Signed-off-by: Ming Aldrich-Gan <mingaldrichgan@gmail.com>
@AzureMarker AzureMarker merged commit e467a93 into pi-hole:master Mar 20, 2019
@mingaldrichgan mingaldrichgan deleted the patch-1 branch March 20, 2019 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants