WebDav経由でApacheからgitリポジトリにアクセスできるようにする設定

/etc/httpd/conf.d/git.conf

<Location /git>
   DAV on
   AuthType Basic
   AuthName "git repository"
   AuthUserFile /opt/git/.htpasswd
   Require valid-user
</Location>

ファイルパーミッション変更

chown apache:apache  /etc/httpd/conf.d/git.conf
htpasswd -c /opt/git/.htpasswd takase
chown -R apache:apache /opt/git