Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos OSX中通过HTTP的Git post接收_Macos_Apache_Git_Git Post Receive - Fatal编程技术网

Macos OSX中通过HTTP的Git post接收

Macos OSX中通过HTTP的Git post接收,macos,apache,git,git-post-receive,Macos,Apache,Git,Git Post Receive,我的设置是: 1.OS X为Git存储运行apache服务器。 2.我的Git项目目录在这里:/Library/WebServer/Documents/CI 3.我遵循了本教程:并设置了通过HTTP的Git访问 4.我的gitrepo.conf类似于: DavLockDB "/var/www/DavLock/Lock" DavMinTimeout 28800 <Directory /Library/WebServer/Documents/CI> DAV On Deny fr

我的设置是:
1.OS X为Git存储运行apache服务器。
2.我的Git项目目录在这里:/Library/WebServer/Documents/CI
3.我遵循了本教程:并设置了通过HTTP的Git访问
4.我的gitrepo.conf类似于:

DavLockDB "/var/www/DavLock/Lock"
DavMinTimeout 28800

<Directory /Library/WebServer/Documents/CI>
  DAV On
  Deny from all
  AuthType Basic
  AuthName "Area51 git repositories"
  AuthUserFile /etc/apache2/other/htpasswd-git
  AuthGroupFile /etc/apache2/other/htgroup-git

</Directory>
<Directory /Library/WebServer/Documents/CI/ci_test.git>
Allow from all 
Order allow,deny
Require valid-user
<Limit GET>
Require group myproject-reader
</Limit>
<Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require group myproject-writer
</Limit>
</Directory>
我得到:

error: The requested URL returned error: 403 while accessing http://username@ciserver.smt/ci_test.git/info/refs

fatal: HTTP request failed

我还做错了什么?

看来您无法在webdav共享回购上运行挂钩。但是您可以使用智能HTTP协议(通过CGI包含在web服务器中),该协议可以处理钩子


有关更多详细信息,请参阅。

您似乎无法在webdav共享回购上运行挂钩。但是您可以使用智能HTTP协议(通过CGI包含在web服务器中),该协议可以处理钩子


有关更多详细信息,请参阅。

我已经关注了您的粘贴链接(非常感谢,因为我知道我应该关注哪个方向)。恐怕我在这里做错了什么。我将更新我的问题,我已经按照你的粘贴链接更改了设置(非常感谢,因为我知道我应该遵循哪个方向)。恐怕我在这里做错了什么。我将用更改的设置更新我的问题
git clone http://username@ciserver.smt/ci_test.git
error: The requested URL returned error: 403 while accessing http://username@ciserver.smt/ci_test.git/info/refs

fatal: HTTP request failed