From: Hugo Connery <hmco@env.dtu.dk>
To: <git@vger.kernel.org>
Subject: Documentation bug in ProGit v2
Date: Fri, 31 Jul 2015 12:13:38 +0200 [thread overview]
Message-ID: <55BB4A52.2060404@env.dtu.dk> (raw)
[-- Attachment #1: Type: text/plain, Size: 919 bytes --]
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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
reply other threads:[~2015-07-31 10:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55BB4A52.2060404@env.dtu.dk \
--to=hmco@env.dtu.dk \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).