Created
March 30, 2011 16:35
-
-
Save arthurgeek/894752 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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