403 Forbidden on Admin dashboard

Expected Behaviour:
Normal PiHole install, I should be able to access the Admin dashboard.

I did not install a webserver when it asked to because I already had lighttpd.

Actual Behaviour:
Trying to access the Admin dashboard with the IP address followed by /admin results in a '403 Forbidden' page.

Debug Token:
https://tricorder.pi-hole.net/sckgecz7b5

Further Information:

My RPi is mainly used to feed ADS-B data using the following packages, dump1090-fa, fr24feed and piaware. They require lighttpd to be installed, that is already used.

The WebUI of those packages are available on pi IP:8080 and pi IP:8754.

Are you running DietPi with the DietPi installer for Pi-hole?

Nope. Installed it using the curl command mentioned on the PiHole GitHub page.

Running stock Raspbian. Nothing extra.

Run pihole -r and select "reconfigure" Then select the web interface option so Pi-hole can install the configurations it needs to use the admin page.

2 Likes

The lighttpd.conf file in use on your system is not configured for Pi-hole. You'll have to configure your version of lighttpd.conf to allow access.

This is yours:

-rw-r--r-- 1 root root 2043 Apr 13  2019 /etc/lighttpd/lighttpd.conf
   server.modules = (
   	"mod_indexfile",
   	"mod_access",
   	"mod_alias",
    	"mod_redirect",
   )
   server.document-root        = "/var/www/html"
   server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
   server.errorlog             = "/var/log/lighttpd/error.log"
   server.pid-file             = "/var/run/lighttpd.pid"
   server.username             = "www-data"
   server.groupname            = "www-data"
   server.port                 = 80
   server.http-parseopts = (
     "header-strict"           => "enable",
     "host-strict"             => "enable",
     "host-normalize"          => "enable",
     "url-normalize-unreserved"=> "enable",
     "url-normalize-required"  => "enable",
     "url-ctrls-reject"        => "enable",
     "url-path-2f-decode"      => "enable",
    
     "url-path-dotseg-remove"  => "enable",
    
    
   )
   index-file.names            = ( "index.php", "index.html" )
   url.access-deny             = ( "~", ".inc" )
   static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
   compress.cache-dir          = "/var/cache/lighttpd/compress/"
   compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
   include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
   include_shell "/usr/share/lighttpd/create-mime.conf.pl"
   include "/etc/lighttpd/conf-enabled/*.conf"
   server.modules += (
   	"mod_compress",
   	"mod_dirlisting",
   	"mod_staticfile",
   )

This is what we install: pi-hole/advanced/lighttpd.conf.debian at 9e490775ff3b20f378acc9db7cec2ae6023fff7f · pi-hole/pi-hole · GitHub

1 Like

Thank you Dan!

You're quite welcome!

As an aside: https://www.adsbexchange.com/

1 Like

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