this post was submitted on 08 Nov 2024
1 points (100.0% liked)

Pi-hole® - A black hole for Internet Advertisements

6 readers
1 users here now

"The Pi-hole® is a DNS sinkhole that protects your devices from unwanted content" Please read the rules before posting, thanks!.

founded 1 year ago
MODERATORS
 
The original post: /r/pihole by /u/TheHenanigans on 2024-11-07 17:33:32.

I have a Raspberry Pi 4B with Nextcloud installed and running. I now installed pi-hole via installer (but without lighttpd). I created a pihole.conf within /etc/apache2/sites-available/ with:

<VirtualHost *:8080>
        DocumentRoot /var/www/html/admin/
        RewriteEngine on
        RewriteRule   "^/$"  "/pihole/"  [R]
</VirtualHost>

And told the ports.conf to listen to 8080. I also made www-data member of pihole group.

When trying to access <pi-IP>:8080 via Firefox it forwards to <pi-IP>:8080/pihole but says

Not Found

The requested URL was not found on this server.

Not Found

The requested URL was not found on this server.

Apache/2.4.62 (Debian) Server at Port 8080

<pi-IP> reaches nextcloud with <pi-IP>/index.php/login

What confuses me is that /var/www/html/pihole/ doesn't exist (although I think it should). Maybe that's the culprit?

ETA: I ran a2ensite pihole

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here