darky
January 15, 2023, 11:16pm
1
Hi there,
I do have Pihole 5.15 up and running with Docker. It does wok in general.
But there is a small problem: instead of blocking page I do get the the placeholder page. I've already tried to delete all files in the folder as is desribed there (Getting lighthttpd placeholder page instead of new unblock page - #2 by DL6ER ). But then I get an 403 error.
What I need to setup in order to get the page (back)?
Your debug token is: https://tricorder.pi-hole.net/mN2HjpsT/
jfb
January 16, 2023, 5:12am
2
Please elaborate, and include some screen shots showing what you are seeing. In this forum, you can paste images (or upload images) directly into your reply.
You need to append /admin when navigating via IP address.
This is mentioned in the release notes right at the top.
However also note that I pushed a new docker container (2022.1.1) with the following:
pi-hole:master
← pi-hole:admin-page-redirect
opened 11:52PM - 15 Jan 23 UTC
### **What does this PR aim to accomplish?:**
This is something that could be d… one on bare metal installations, too, but in that case we cannot always guarantee the existence of an environment variable. If the variable is not set, then `lighttpd` [will crash](https://github.com/pi-hole/pi-hole/pull/5075#discussion_r1053815933)
On a bare metal install - it is trivial for a user to create this file manually. As we can do it very easily automatically on Docker.. so we do.
---
**By submitting this pull request, I confirm the following:**
1. I have read and understood the [contributors guide](https://docs.pi-hole.net/guides/github/contributing/), as well as this entire template. I understand which branch to base my commits and Pull Requests against.
2. I have commented my proposed changes within the code and I have tested my changes.
3. I am willing to help maintain this change if there are issues with it later.
4. It is compatible with the [EUPL 1.2 license](https://opensource.org/licenses/EUPL-1.1)
5. I have squashed any insignificant commits. ([`git rebase`](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
---
- [x] I have read the above and my PR is ready for review. _Check this box to confirm_
Lighttpd Config
Automatic redirection to /admin
will only happen if you browse via http://pi.hole
. If you wish to browse via http://[IP Address]
, then you will need to ensure that you add /admin
manually. In the past, a splash screen has been shown with a link to /admin
, however this is now removed along with the now-defunct blockpage.
If you really want any other hostname to redirect automatically to admin, simply create a file named /etc/lighttpd/conf-enabled/15-pihole-custom-admin-redirect.conf
(or whatever you want to call it) with the contents similar to:
$HTTP["url"] == "/" {
$HTTP["host"] == "my.custom.domain" {
url.redirect = ("" => "/admin/")
}
}
system
Closed
February 9, 2023, 7:24pm
8
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.