我把这个放进去httpd.conf
<VirtualHost *:17501>
ServerName my.server.com
SetEnv GIT_PROJECT_ROOT /var/opt/git/repos
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
ScriptAlias /git /usr/libexec/git-core/git-http-backend/
<Directory "/usr/libexec/git-core*">
Options ExecCGI Indexes
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
我想让它通过端口访问 https17501
并且存储库的路径是/var/opt/git/repos
.
我应该进行任何其他更改吗?有任何想法吗?