Git : Install Gitweb |
Install Gitweb to refer to repositories on Web Browser. | |
| [1] | |
| [2] | Install Gitweb. |
[root@dlp ~]# dnf -y install gitweb [root@dlp ~]# vi /etc/gitweb.conf # line 10: uncomment and specify root directory of Git repositories our $projectroot = "/var/lib/git"; [root@dlp ~]# vi /etc/httpd/conf.d/gitweb.conf Alias /git /var/www/git <Directory /var/www/git> Options +ExecCGI AddHandler cgi-script .cgi DirectoryIndex gitweb.cgi # add access permission if you need Require ip 127.0.0.1 10.0.0.0/24 </Directory>[root@dlp ~]# systemctl restart httpd |
| [3] | Access to [(Server's Hostname or IP address/git/)] on Web browser, then you can see repositories. |
![]() |
![]() |


No comments:
Post a Comment