Virtualmin-git, doesnt add users to apache ssl-entry

Using the Virtualmin-git module, and have SSL enabled. The module doesn't add users to the ssl entry in apache, only to the non-ssl entry.

The only thing that is present is this (users missing):

<!-- None anonymous access -->
<Location /git/test.git>
    Require user
</Location>

<!-- With anonymous access -->
<Location /git/test2.git>
    <LimitExcept GET HEAD PROPFIND OPTIONS REPORT>
        Require user
    </LimitExcept>
    <Limit GET HEAD PROPFIND OPTIONS REPORT>
        Satisfy Any
    </Limit>
</Location>

While the non-ssl entry is this:

<!-- None anonymous access -->
<Location /git/test.git>
    Require user joachim
</Location>

<!-- With anonymous access -->
<Location /git/test2.git>
    <LimitExcept GET HEAD PROPFIND OPTIONS REPORT>
        Require user joachim
    </LimitExcept>
    <Limit GET HEAD PROPFIND OPTIONS REPORT>
        Satisfy Any
    </Limit>
</Location>
Status: 
Closed (fixed)

Comments

Found the bug; virtualmin-git-lib.pl, line 225:

push(@port, $d->{'web_sslport'}) if ($d->{'ssl'});

must be changed to

push(@ports, $d->{'web_sslport'}) if ($d->{'ssl'});

from @port to @ports

Thanks! I will include this fix in the next release of the Git plugin.

Automatically closed -- issue fixed for 2 weeks with no activity.