Gitweb recursively searches all directories under $projectrootto search for projects. If there are many files displaying the top level, it will take a lot of time. Try to add
$ project_maxdepth = 1; # or a slightly larger integer depending on your project layout
in your /etc/gitweb.conf to limit the search to the level of the first directory $projectroot.
andygavin, $projectroot, - , . gitweb.
git clone --bare/path/to/projects/project/path/to/gitweb/project
gitweb - , $projectroot /path/to/gitweb/ /path/to/projects/.