Skip to content

Instantly share code, notes, and snippets.

@mlafeldt
Created February 23, 2011 21:00
Show Gist options
  • Save mlafeldt/841177 to your computer and use it in GitHub Desktop.
Save mlafeldt/841177 to your computer and use it in GitHub Desktop.
working config for gitweb v1.7.4.1
#
# /etc/apache2/conf.d/gitweb
#
Alias /gitweb /var/www/gitweb
<Directory /var/www/gitweb>
Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All
order allow,deny
Allow from all
AddHandler cgi-script cgi
DirectoryIndex gitweb.cgi
</Directory>
#
# /etc/gitweb.conf
#
# path to git projects (<project>.git)
$projectroot = "/var/cache/git";
# directory to use for temp files
$git_temp = "/tmp";
# target of the home link on top of all pages
#$home_link = $my_uri || "/";
# html text to include at home page
$home_text = "indextext.html";
# file with project list; by default, simply scan the projectroot dir.
$projects_list = $projectroot;
# stylesheet to use
$stylesheet = "/gitweb/static/gitweb.css";
# logo to use
$logo = "/gitweb/static/git-logo.png";
# the 'favicon'
$favicon = "/gitweb/static/git-favicon.png";
@roblillack
Copy link

FYI, we're using cgit and gerrit over here, check out http://code.nrs/ and http://review.nrs/ :)

@mlafeldt
Copy link
Author

Nice. And we're using svn, trac, and some other "bleeding-edge" technologies. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment