From ArchWiki


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;

—This unsigned comment is by Sutat (talk) 09:33, 15 February 2014‎. Please sign your posts with ~~~~!


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

—This unsigned comment is by Markg85 (talk) 16:49, 4 March 2011‎ (UTC). Please sign your posts with ~~~~!

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?

—This unsigned comment is by Markg85 (talk) 13:55, 5 March 2011‎ (UTC). Please sign your posts with ~~~~!

+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

—This unsigned comment is by E caille (talk) 18:28, 16 September 2015‎ (UTC). Please sign your posts with ~~~~!

Relationship with CGit and Gitosis

The flag was raised in version 559751. It has been there since the first version. --Franklin Yu (talk) 09:10, 11 December 2019 (UTC)

Hi, i have NO CLUE how this editing works with providing feedback or even finding what the question is. He that messaged me apparently knows much more about wiki stuff then i do.

So what's the question? Ah right, apparently the proclaimed basis of gitweb for cgit and gitosis. I don't know why i said that. Back then i was looking for some git self hosted solution and apparently was under the impression that CGit and gitosis were dependent on gitweb. It's easy to say they are not NOW... But i definitely vaguely remember gitweb being the core "git from web" implementation and that cgit + gitosis were using gitweb internally + some more fancy scripts on top. It might not be the case anymore (10 years later...). That doesn't make it "factual inaccurate", only that times have changed and with "today's" version of all those git for web projects. It's a wiki, feel free to amend it with the changes you deem right :)

—This unsigned comment is by Markg85 (talk) 16:36, 11 December 2019‎. Please sign your posts with ~~~~!