I'm trying to give gitweb a try, but I'm failing to get it to work.
On Ubuntu Server 13.10 (saucy), I ran apt-get update
, then apt-get install gitweb
.
...
Unpacking gitweb (from .../gitweb_1%3a1.8.3.2-1_all.deb) ... Selecting previously unselected package libhttp-date-perl. Unpacking libhttp-date-perl (from .../libhttp-date-perl_6.02-1_all.deb) ... Processing triggers for man-db ... Setting up gitweb (1:1.8.3.2-1) ...
* Reloading web server apache2 * Setting up libhttp-date-perl (6.02-1) ...
#
The package did generate the proper files needed for the install:
# cat /etc/apache2/conf.d/gitweb
Alias /gitweb /usr/share/gitweb
<Directory /usr/share/gitweb>
Options FollowSymLinks +ExecCGI
AddHandler cgi-script .cgi
</Directory>
The file /etc/gitweb.conf is also generated.
However, even after an apache2ctrl restart
(which was already done by apt-get
, but anyway) I'm unable to access http://localhost/gitweb
. From access.log:
10.0.10.175 - - [29/Dec/2013:15:14:19 +0100] "GET /gitweb HTTP/1.1" 404 495 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"
127.0.0.1 - - [29/Dec/2013:15:18:27 +0100] "GET /gitweb/ HTTP/1.1" 404 495 "-" "ELinks/0.12~pre6-1ubuntu1 (textmode; Ubuntu; Linux 3.11.0-14-generic x86_64; 237x71-2)"
I'm hosting Mediawiki and phppgadmin on the server (also installed with apt-get), and these work without an issue.
Any clue?
/etc/gitweb.conf
file ?/etc/apache2/sites-enabled/
forgitweb
?