5

I setup a gitosis managed git server.

git clone is ok.

but when I set gitweb via gitweb.conf as below:


$projectroot = "/srv/gitosis/repositories";

$git_temp = "/tmp";

$home_text = "indextext.html";

$projects_list = "/srv/gitosis/gitosis/projects.list";

$stylesheet = "/gitweb/gitweb.css";

$logo = "/gitweb/git-logo.png";

$favicon = "/gitweb/git-favicon.png";

Btw, the commet was deleted because of the special symbol # is using as bold prefix.

"403 Forbidden - No projects found" is reported when I access gitweb through "http://localhost/cgi-bin/gitweb.cgi"

I checked the projects.list file it is empty, is that the reason why gitweb access failed? what would be the correct content? can i add it manually?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Readon Shaw
  • 365
  • 1
  • 4
  • 7

4 Answers4

3

You need this in your gitosis.conf for every project you want to publish via gitweb:

[repo myreponame]
gitweb = yes

optionally also add owner and description.

You can find more info in gitosis' documentation, linked from the author's website.

Luke404
  • 10,282
  • 3
  • 25
  • 31
0

Is this similar to "git instaweb gives 403 Forbidden - No projects found ", where you need to remove the $projectroot line from /etc/gitweb.conf?

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
0

What did you set gitweb = yes in the gitosis.conf file for the repo?

naven87
  • 964
  • 1
  • 7
  • 24
0

I created a blog post recently about getting gitosis and gitweb to play nice together because I had the exact same problem and I wanted to let others know how to get it working too. Take a look and read through it and you should end up with a setup that just works. And if you have questions then feel free to ask.

I hope that this helps.

Robert Massaioli
  • 13,379
  • 7
  • 57
  • 73