From ArchWiki
Jump to: navigation, search

Might be nice to add some vhost config examples here as well

--Wsduvall October 24 2010 10:53



To answer Wsduvall, here is my configuration in a virtualhost on nginx :

server {
       server_name my_server_name;
       root /srv/http/gitweb;
       index gitweb.cgi;
       gzip off;
       location ~ \.cgi$ {
           fastcgi_param   GITWEB_CONFIG  /etc/conf.d/gitweb.conf;
           include fastcgi_params;
           fastcgi_pass   unix:/run/fcgiwrap.sock;
           include        fastcgi.conf;


I added a section that explains how to checkout over SSH. Please do check it for errors if you want.

Merge with Git


I marked a few section that i think would better fit the Git page rather then the Gitweb page. Those are the sections for cloning over the git protocol, over ssh and over http. It's neat but really not part of Gitweb. I made those sections even this article but now i think it's best to merge a part of it with Git. What do you think of it?

+1 for merging them to Git. -- Fengchao (talk) 08:09, 6 February 2013 (UTC)


As mod_perl now require a downgraded version of perl, why using it for apache 2.4 ?

This configuration seems to be working fine :

<Directory "/usr/share/gitweb">
   DirectoryIndex gitweb.cgi
   Require all granted
   Options ExecCGI
   AddHandler cgi-script .cgi
   SetEnv  GITWEB_CONFIG  /etc/conf.d/gitweb.conf