Install Pi-hole on Volumio.

  • Install Volumio the normal way.
  • Set Volumio to accept ssh connections in the developer settings.
  • Open a ssh session to volumio.local and run the Pi-hole install script.
  • Open /etc/lighttpd/lighttpd.conf and set these values:
    server.port = 8080
    server.errorlog = "/tmp/lighttpd_error.log"
    accesslog.filename = "/tmp/lighttpd_access.log"
  • Reload the lighttpd settings with sudo service lighttpd reload or reboot the Raspberry Pi.
  • Go to the Pi-hole web interface at http://volumio.local:8080/admin/
  • (Optional) Set a default web page at the web root:
    cd /var/www/html/
    cp index.lighttpd.orig index.html

    Or set your own index page.

And while you are at it, stop the dhcp-daemon and delete the secondary IP address.


Apache2 proxy setup.

Om lan servers via internet te benaderen en daarbij niet te veel poorten te hoeven openen kun je Apache2 gebruiken als proxy server.

Voorbeeld salamanders:

Opslaan als in /etc/apache2/sites-available.

<VirtualHost *:80>


    ProxyRequests Off

    ProxyPreserveHost On

    <Location />
        ProxyPass ""
        ProxyPassReverse ""

    SetEnvIf Request_URI "^/api/getdevice" dontlog

    CustomLog "|/usr/bin/rotatelogs /var/www/ 86400" vhost_combined env=!dontlog
    ErrorLog "|/usr/bin/rotatelogs /var/www/ 86400"


Nu alleen nog Apache2 op de hoogte stellen:

a2ensite salamanders*
service apache2 reload

En het werkt.

De links: