ServerName git.kennylee.cn DocumentRoot /home/git SetEnv GIT_PROJECT_ROOT /home/git SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ PerlLoadModule Apache2::Redmine Order allow,deny Allow from all AuthType Basic AuthName "Redmine git repositories" Require valid-user PerlAccessHandler Apache::Authn::Redmine::access_handler PerlAuthenHandler Apache::Authn::Redmine::authen_handler RedmineDSN "DBI:mysql:database=redmine;host=192.168.1.99:port=5306" # config your password RedmineDbUser "redmine" RedmineDbPass "timekey123456" RedmineGitSmartHttp yes