My setup is Red Hat Enterprise Linux. I have successfully installed Git, gitosis, Gitweb and Apache packages. However, I have not figured out how to configure Apache and gitweb. Most of the document for gitweb are more or less same , but i get error while doing it. For example i followed below link and while starting httpd i'm getting
- ERROR
Starting httpd: syntax error on line 6 of /etc/httpd/conf.d/git.conf: allow not allowed here
link --> http://gofedora.com/how-to-install-configure-gitweb/
below is git.conf
DocumentRoot /home/gitadmin/git
ServerName gitprodserver
SetEnv GITWEB_CONFIG /etc/gitweb.conf
DirectoryIndex gitweb.cgi
Allow from all
AllowOverride all
Order allow,deny
Options +ExecCGI
AddHandler cgi-script .cgi
SetHandler cgi-script
RewriteEngine on
RewriteRule ^[a-zA-Z0-9_\-]+\.git/?(\?.*)?$ /gitweb.cgi%{REQUEST_URI} [L,PT]