Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ sudo apt-get install gitweb
$ vim /etc/gitweb.conf
# Edite a variável $projectroot informando o diretório dos seus repositórios git.
$ vim /etc/apache2/conf.d/gitweb
RewriteEngine on
RewriteRule ^/gitweb/([a-zA-Z0-9_\-]+\.git)/?(\?.*)?$ /cgi-bin/gitweb.cgi/$1 [L,PT]
Alias /gitweb /repositories
Alias /gitweb.css /usr/share/gitweb/gitweb.css
Alias /git-logo.png /usr/share/gitweb/git-logo.png
Alias /git-favicon.png /usr/share/gitweb/git-favicon.png
<Directory /repositories>
Options Indexes FollowSymlinks ExecCGI
DirectoryIndex /cgi-bin/gitweb.cgi
AllowOverride None
</Directory>
# Nesse caso, /repositories é o meu $projectroot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.