MultiWOL Installation with Apache2 example

Installation

Fetch and untar the distribution:

# fetch https://sourceforge.net/projects/multiwol/files/multiwol/0.1.3/multiwol-0.1.3.tar.gz
# tar -xf multiwol-0.1.3.tar.gz -C /usr/local/www/apache22/data

Edit configuration options in multiwol.pl as needed.

Apache configuration

Add following code to /usr/local/etc/apache22/httpd.conf:

<Directory "/usr/local/www/apache22/data/multiwol">
    Options None
    AllowOverride None
    Order deny,allow
    Allow from all

    AuthName "global"
    AuthType Digest
    AuthUserFile /usr/local/www/apache22/passwd/digests
    Require valid-user

    <Files "multiwol.pl">
        SetHandler cgi-script
        Options ExecCGI

        # The Digest authentication in IE has known issues, 
        # namely that GET requests with a query string are not RFC compliant
        # see http://drupal.org/node/128962
        BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
    </Files>

</Directory>

Reload apache configuration:

# apachectl graceful

Create password digests:

# mkdir -m 550 /usr/local/www/apache22/passwd

# htdigest -c /usr/local/www/apache22/passwd/digests global username1
# htdigest /usr/local/www/apache22/passwd/digests global username2
# htdigest /usr/local/www/apache22/passwd/digests global username3

# chown -R www:www /usr/local/www/apache22/passwd
# chmod 440 /usr/local/www/apache22/passwd/digests

Done!

You should be able to access MultiWOL from your browser at

http://hostname/multiwol/multiwol.pl

or

http://hostname/multiwol/multiwol.pl?lang=ru

and authenticate with one of the user you previously added.