Merge branch 'jk/doc-http-backend'
Improve documentation to illustrate "push authenticated, fetch anonymous" configuration for smart HTTP servers. * jk/doc-http-backend: doc/http-backend: match query-string in apache half-auth example doc/http-backend: give some lighttpd config examples doc/http-backend: clarify "half-auth" repo configuration
This commit is contained in:
@ -40,6 +40,9 @@ ErrorLog error.log
|
||||
<IfModule !mod_authz_user.c>
|
||||
LoadModule authz_user_module modules/mod_authz_user.so
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_host.c>
|
||||
LoadModule authz_host_module modules/mod_authz_host.so
|
||||
</IfModule>
|
||||
</IfVersion>
|
||||
|
||||
PassEnv GIT_VALGRIND
|
||||
@ -115,6 +118,21 @@ SSLEngine On
|
||||
Require valid-user
|
||||
</LocationMatch>
|
||||
|
||||
RewriteCond %{QUERY_STRING} service=git-receive-pack [OR]
|
||||
RewriteCond %{REQUEST_URI} /git-receive-pack$
|
||||
RewriteRule ^/half-auth-complete/ - [E=AUTHREQUIRED:yes]
|
||||
|
||||
<Location /half-auth-complete/>
|
||||
Order Deny,Allow
|
||||
Deny from env=AUTHREQUIRED
|
||||
|
||||
AuthType Basic
|
||||
AuthName "Git Access"
|
||||
AuthUserFile passwd
|
||||
Require valid-user
|
||||
Satisfy Any
|
||||
</Location>
|
||||
|
||||
<IfDefine DAV>
|
||||
LoadModule dav_module modules/mod_dav.so
|
||||
LoadModule dav_fs_module modules/mod_dav_fs.so
|
||||
|
Reference in New Issue
Block a user