Security settings

Note: This guide requires the installation of the webserver Apache!

  • Open /etc/apache2/sites-available/default in an editor
  • nano /etc/apache2/sites-available/default

  • Add following lines
  • ScriptAlias /ivdr /usr/lib/cgi-bin/ivdr/ivdr.pl
    <Directory /usr/lib/cgi-bin/ivdr>
    AuthType Basic
    AuthName "Enter password:"
    AuthUserFile /etc/apache2/passwd/htpasswd
    AuthGroupFile /dev/zero
    # or an existing user
    Require user ivdr
    # No password on localhost / local network
    Allow from 127.0.0.0/255.0.0.0 ::1/128
    # Adjust this line
    Allow from 192.###.###.0/24
    Satisfy Any
    </Directory>

  • Adding an Apache-user
  • mkdir /etc/apache2/passwd
    htpasswd /etc/apache2/passwd/htpasswd ivdr

  • Restart Apache and browse to http://servername/ivdr