I am attempting to create an authoritative repository on one of my 
Rackspace servers. I have already created the bare repositories and moved 
them to the directory /home/git on Rackspace. I have a user named GIT (and 
hence a group of the same name) and have created other users in my team and 
assigned them to this group called "GIT". Moved two bare repositories on to 
the Rackspace server using SSH. (Had some teething issues wrt to 
permissions that I resolved, see my previous post). 

I'm attempting to configure gitweb so that I can access my git web 
interface from git.mycompanyname.net. I run several hosts on apache so my 
Vhost configuration for GIT is as follows
<VirtualHost *:80>
   ServerName git.mycompany.net
   DocumentRoot /usr/share/gitweb
   <Directory /usr/share/gitweb/>
      Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
      AllowOverride All
      Order allow,deny
      Allow from all
      AddHandler cgi-script cgi
      DirectoryIndex gitweb.cgi

I then changed the project directory in /etc/gitweb.conf
$projectroot = "/home/git/";

When I restart the apache server and visit git.mycompanyname.net

I get a *404 - No projects found *page

So I checked the ~/conf.d/gitweb configuration and made changes as 
suggested by some posts on the web and at present it looks like this
RewriteEngine on
#RewriteRule ^/gitweb/([a-zA-Z0-9_-]+.git)/?(?.*)?$ /cgi-bin/gitweb.cgi/$1 
RewriteRule ^[a-zA-Z0-9_\-]+\.git/?(\?.*)?$ /gitweb/$1 [L,PT]

Alias /gitweb /home/git

<Directory /home/git>
  Options Indexes FollowSymLinks ExecCGI
  DirectoryIndex /cgi-bin/gitweb.cgi
  AllowOverride None
  AddHandler cgi-script .cgi

But still I have had no luck in gitweb displaying any of my repositories. 
Any help would be appreciated.

Best regards,


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to