首页 > Web开发 > 详细

gitweb配置

时间:2019-02-15 11:07:03      阅读:203      评论:0      收藏:0      [点我收藏+]

 

安装gitweb和apache

yum -y install gitweb
yum -y install httpd

配置gitweb库地址 /etc/gitweb.conf

$projectroot = ‘/opt/git‘

配置权限

chmod 770 -R /opt/git
usermod -a -G git apache

配置 /etc/httpd/conf.d/git.conf 注意Options中间没有+

<VirtualHost *:80>
	ServerName gitserver
	DocumentRoot /var/www/gitweb
	<Directory /var/www/gitweb>
		Options ExecCGI FollowSymLinks SymLinksIfOwnerMatch
		AllowOverride All
		order allow,deny
		Allow from all
		AddHandler cgi-script cgi
		DirectoryIndex gitweb.cgi
	</Directory>
</VirtualHost>

如需设置apache登录密码,请访问:

http://www.cnblogs.com/loveCloud/archive/2012/01/12/2320636.html

参考:

《Pro Git》- GitWeb

https://www.cnblogs.com/gtarcoder/p/5309229.html

gitweb配置

原文:https://www.cnblogs.com/wswind/p/10382255.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!