svn - Apache webserver Require valid-user leads to internal server error -
i'm setting svn server , want restrict access users have log in first before can view/modify files. dav_svn.conf looks this:
<location /svn> dav svn svnparentpath /home/pi/repos # authentication: digest authname "subversion repository" authtype digest authuserfile /etc/apache2/svn-auth.htdigest # authorization: authenticated users require valid-user </location>
when try access webpage shows "internal server error". looking inside "/var/log/apache2/error.log" shows following line:
[mon sep 11 20:36:47.755229 2017] [authn_core:error] [pid 30331:tid 1972368432] [client 192.168.0.103:59263] ah01796: authtype digest configured without corresponding module, referer: http://192.168.0.100/svn/a/
i can "fix" error changing dav_svn.conf putting xml tag around "require valid-user":
<limitexcept propfind options report> require valid-user </limitexcept>
however, open viewing rights , mother. can verify trying access webpage , indeed in without password. when trying post same error again.
i've tried search error online lot, other countless examples give example, nobody seems have problem it... appreciated.
ok turned out specific part of authentication functionality not enabled default. examples found online failed mention. did following:
sudo a2enmod auth_digest
which gave output:
considering dependency authn_core auth_digest: module authn_core enabled enabling module auth_digest. activate new configuration, need run: service apache2 restart
so authn_core enabled, not digest. odd possible create digest password file:
sudo htdigest -c /etc/apache2/svn-auth.htdigest realm "subversion repository"
Comments
Post a Comment