RPi 4 | pihole web interface forbidden

I am wondering that no one has this problem and no one replied to my post.

I think I found a solution, but I am not sure if it is save. I removed the configuration

/etc/lighttpd/conf-available/99-dietpi-pihole.conf

Here is the content:

# Based on: https://github.com/pi-hole/pi-hole/blob/master/advanced/lighttpd.conf.debian

# If the URL starts with /admin, it is the Web interface
$HTTP["url"] =~ "^(/html)?/admin/" {
        # Create a response header for debugging using curl -I
        setenv.add-response-header = (
                "X-Pi-hole" => "The Pi-hole Web interface is working!",
                "X-Frame-Options" => "DENY"
        )

        $HTTP["url"] =~ "\.ttf$" {
                # Allow Block Page access to local fonts
                setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
        }
}

# Block . files from being served, such as .git, .github, .gitignore
$HTTP["url"] =~ "^(/html)?/admin/\." {
        url.access-deny = ("")
}

# If it's a request to Pi-hole blocking page...
$HTTP["url"] =~ "^(/html)?/pihole/" {
        # ... and the request isn't local
        $HTTP["remoteip"] !~ "^1(27|92\.168|0|72\.(1[6-9]|2[0-9]|3[0-1]))\." {
                # block!
                url.access-deny = ("")
        }
}

# Enable blocking page via 404 handler
#server.error-handler-404 = "/html/pihole/index.php"

Is this a missconfiguration of lighttpd?