-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Accessing http://pi.hole/ produces "400 Bad Response" error on Ubuntu Server 19.04 #2852
Comments
Are you able to reproduce after switching to the development branch? |
@Mcat12, no. The problem went away on the development branch. |
@Mcat12, is there a way to get the pi-hole "block page" to appear while on the development branch? I have it configured, per prior instructions. However, it's not working. - Instead, I'm only seeing the typical error (in Chrome) |
Thanks @Mcat12. - From what I saw in that PR, it is still pending review/merging. Therefore, there is nothing that I can do from my end yet (in terms of patches, workaround, reconfiguration). As for this particular bug, should I remain on the development release/track? Also, do you need me to close this out or leave it open until the next version is released? |
You can checkout that particular branch before it is merged to dev: We usually leave these "fixed in next release" issues open until the release is out. |
@Mcat12
Since this is IMO not a very reliable solution and any custom website in webroot breaks blocking page, I suggest blocked requests being redirected to Another reason why I am looking for this, is that we (DietPi) aim to deny access to the Pi-hole blocking page by default for non-LAN access: MichaIng/DietPi#3054
Perhaps I should open a separate issue/request for this, but for now I most importantly aim to understand (or verify that I did) how the current implementation really works 😉. |
The default blocking mode returns https://docs.pi-hole.net/ftldns/blockingmode/
The
The Lighttpd config that we ship sets the 404 page, so when a 404 is hit the block page is rendered. The block page is returned for Lines 53 to 55 in 1a741f6
It is impossible to change the path of a request through DNS. We cannot influence the client's request other than to change the IP that it is made to.
This would can be done either at the web server level (assuming it can change the 404 handler based on the incoming request) or at the block page level (custom code to check if it is a local request).
This does seem a little unrelated to the issue we are currently in. |
@Mcat12 Of course, now I remember the 404 to blocking page, which I found confusing when you have other websites on the webserver, and when accessing wrong one is presented the blocking page, which is out of context there.
Ah that's it and it's a reasonable redirect as well.
Good idea. Jep should be easily possible to set 404 handler to blocking page only for remote IPs matching For DietPi it is no viable solution to change the Pi-hole code, since users want and should run However other topic. Many thanks for clarifying things and sorry for the OOT posts. Related to this topic, since the mention PR (fix) has been merged, I can confirm that the current dev branch fixes the |
Pi-hole v5.0 has just been released. |
In raising this issue, I confirm the following:
How familiar are you with the the source code relevant to this issue?: 8
Expected behaviour:
Actual behaviour:
Steps to reproduce:
Debug token provided by uploading
pihole -d
log:Troubleshooting undertaken, and/or other relevant information:
The text was updated successfully, but these errors were encountered: