Hi, For me it was pretty straight forward getting Gitweb running on our servers. The apache config is pretty much like this (I've removed some https auth thing for brevity):
Alias /gitweb /usr/share/gitweb <Directory /usr/share/gitweb> Options FollowSymLinks +ExecCGI AddHandler cgi-script .cgi </Directory> Our /etc/gitweb.conf: $projectroot = "/git"; and /git is a symbolic link to /var/git/, where our repos are located. Can you tell us which operating system (and version) you are installing on? What version of Apache and git/gitweb are installed? Which recipes and how-to's are your setup based on? Could it be a permission issue? Does the web server process user have permission to read the contents of /home/git ? On Friday, June 22, 2012 2:00:26 PM UTC+2, Sridhar Pandurangaiah wrote: > > 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 > </Directory> > </VirtualHost> > > 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 > [L,PT] > 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 > </Directory> > > But still I have had no luck in gitweb displaying any of my repositories. > Any help would be appreciated. > > Best regards, > > Sridhar > > > -- 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 https://groups.google.com/d/msg/git-users/-/7RaF8iZH_egJ. To post to this group, send email to firstname.lastname@example.org. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.