Start page with DietPi install

I've made a new installation on DietPi and I want to slightly mimic look and feel from my previous installation made on Armbian.

Expected Behaviour:

accessing http://servername brings a page with red Pi-hole logo on dark background.
accessing http://servername/admin or http://servername/pihole brings Pi-hole admin interface

Actual Behaviour:

accessing http://servername brings default Lighttpd 'Placeholder page' /var/www/index.lighttpd.html ; in my case server.document-root = "/var/www"
I want to see a 'logo' page as a start page instead. How can I do that?

The DietPi install is customized for DietPi, and has been modified to work better with other applications. Have you tried deleting the placeholder page?

Yes. Without the placeholder page I had 403 - Forbidden
Then I tried to follow recommendations from https://github.com/Fourdee/DietPi/issues/2007#issuecomment-419712115

cd /var/www
rm admin pihole
ln -s html/admin admin
ln -s html/pihole pihole
ln -s html/pihole/index.php index.php

As a result I'm getting Pi-hole 'Website Blocked' page when opening http://servername/

Here is the code which makes the list of hostnames which activate that page:

Are you going to the hostname of the server?

Yes, I'm going to the hostname of the server. If I go to the IP address of the server I'm getting the 'logo page'.
I have the following added in external.conf (it was partial copy/paste from another my installation where I've added https support per forum instructions):

$HTTP["host"] == "servername.lan" {
# Ensure the Pi-hole Block Page knows that this is not a blocked domain
setenv.add-environment = ("fqdn" => "true")
}

EDIT:
Sorted out - the above-mentioned external.conf was ignored on DietPi install since it should be explicitly included in the main configuration file. Copy/pasted from the 'normal' install:
# Add user chosen options held in external file
include_shell "cat external.conf 2>/dev/null"

and also"mod_setenv" should be added to server.modules= block.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.