關於WD MyCloud, you will find tutorial to access a git repo through ssh,這是相當容易安裝,考慮到你所需要的只是一個sshd運行。
但是,要使https網址正常工作,您需要運行一個Apache服務器,properly configured以支持git http-backend
。
沿an httpd.conf
線包括一些:
# Configure Git HTTP Backend
SetEnv GIT_PROJECT_ROOT /www/example.com/git
SetEnv GIT_HTTP_EXPORT_ALL
# Note: Serve static files directly
AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /var/www/git/$1
AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /var/www/git/$1
# Note: Serve repository objects with Git HTTP backend
ScriptAliasMatch \
"(?x)^/(.*/(HEAD | \
info/refs | \
objects/info/[^/]+ | \
git-(upload|receive)-pack))$" \
/usr/libexec/git-core/git-http-backend/$1
而不是標準的,除非你設置它事先自己。