Skip to content

Instantly share code, notes, and snippets.

@arthurgeek
Created March 30, 2011 16:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arthurgeek/894752 to your computer and use it in GitHub Desktop.
Save arthurgeek/894752 to your computer and use it in GitHub Desktop.
$ 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