gitweb config

centos 7 gitweb with apache config

  • install apache and gitweb
sudo yum install gitweb httpd -y
  • create user add config group information
# useradd -c 'git user' git
# usermod -a -G git apache
# su - git <
  • git web config sudo vim /etc/gitweb.conf
our $projectroot = "/home/git/projects";
  • start apache
sudo systemctl enable httpd
sudo systemctl start httpd

The key part, though, is ensuring that your web server has appropriate permissions on your /home/gitdirectory. If you're not using Apache, figure out what user your web server is using and then substitute that in the above.

你可能感兴趣的:(gitweb config)