Improve Smart HTTP section - #432
Merged
Merged
Conversation
User files generated with htdigest and htpasswd are not compatible. Thus, htpasswd must be used with AuthType Basic. Signed-off-by: Vitaly Kuznetsov <[email protected]>
Apache process doesn’t have write permissions for the /opt/git/ subdirectories. Restore the paragraph from this section: https://git-scm.com/book/en/v1/Git-on-the-Server-Public-Access. Signed-off-by: Vitaly Kuznetsov <[email protected]>
There is an issue with the authentication section. The initial ref advertisement request will fail without even giving an opportunity for authentication. This is described in the git-http-backend man page examples. Update authentication section according to the example to fix the problem. Merge the section with the git-core access authorization section for brevity. Signed-off-by: Vitaly Kuznetsov <[email protected]>
Member
|
I like it, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues arise during the very basic setup of Smart HTTP using the tutorial.
Thus, if AuthType Basic is used, htdigest must be changed to htpasswd.
The fix also resolves book errata #122.
To address this, I suggest restoring the paragraph from this section:
https://git-scm.com/book/en/v1/Git-on-the-Server-Public-Access.
Namely,
$ chgrp -R www-data /opt/git.The initial ref advertisement request will fail without even giving an opportunity for authentication.
This is described in the git-http-backend man page examples: https://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html
I have updated and simplified the authentication paragraph from the example to fit the context.
Also, the paragraph is merged with the git-core access authorization paragraph for brevity.