在Progit第4.6节中,如下代码放在apache2的配置文件中,以实现写操作授权验证。
<LocationMatch "^/git/.*/git-receive-pack$">
AuthType Basic
AuthName "Git Access"
AuthUserFile /opt/git/.htpasswd
Require valid-user
</LocationMatch><Lo在Progit第4.6节中,如下代码放在apache2的配置文件中,以实现写操作授权验证。
<LocationMatch "^/git/.*/git-receive-pack$">
AuthType Basic
AuthName "Git Access"
AuthUserFile /opt/git/.htpasswd
Require valid-user
</LocationMatch><Lo