Documentation bug in ProGit v2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

When discussing establishing git over Smart HTTP on pages 140 and 141:

[quote]
Finally you’ll want to make writes be authenticated somehow, possibly
with an Auth block like this:

<LocationMatch "^/git/.*/git-receive-pack$">
AuthType Basic
140GitWeb
AuthName "Git Access"
AuthUserFile /opt/git/.htpasswd
Require valid-user
</LocationMatch>

That will require you to create a .htaccess file containing the
passwords of all the valid users. Here is an example of adding a
“schacon” user to the file:

$ htdigest -c /opt/git/.htpasswd "Git Access" schacon
[end quote]

This will 401 every time.  You either do:

AuthType Digest and use htdigest, or you do
AuthType Basic and use htpasswd

Apache recommend Basic + SSL rather than Digest.

Thanks for the book.

Regards,  Hugo Connery
--
Head of IT, Department of Environmental Engineering
Technical University of Denmark,

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]