/etc/apache/sites-available/dietpi-pihole-block_public_admin.conf: No such file or directory
related: #3131
@AaronDavidSchneider
Many thanks for reporting. Indeed a typo in patch file. Just fixed it: https://github.com/MichaIng/DietPi/commit/94c4af3d55a4f8af4d992fcd3e9dd1256497969b
Fix will be merged with v6.26.2 into Beta. Since the update finishes regardless (right?), please do the following to reapply/fix it:
mkdir -p /etc/apache/sites-available
dietpi-update -1
mv /etc/apache/sites-available/dietpi-pihole-block_public_admin.conf /etc/apache2/sites-available/dietpi-pihole-block_public_admin.conf
rm -R /etc/apache
Side note: This config allows to block Pi-hole admin panel access for requests from outside your local network, if you even opened webserver access to www . On fresh Pi-hole installs it is interactively asked if this is wanted or not, on update we just place the file. If wanted you can run:
a2ensite dietpi-pihole-block_public_admin
systemctl reload apache2
thanks for the fix!
I really like this feature by the way
@AaronDavidSchneider
Thanks for feedback. Jep it simply makes sense. Most likely we gonna implement similar things for other web applications as well, e.g. a separate script to toggle public/LAN-only/host-only access for each application. Reasonable control when one has different websites/applications where usually not all of them shall be accessible for same remote-hosts.