0

我的设置是 Red Hat Enterprise Linux。我已经成功安装了 Git、gitosis、Gitweb 和 Apache 软件包。但是,我还没有弄清楚如何配置 Apache 和 gitweb。gitweb 的大多数文档或多或少都相同,但我在执行此操作时出错。例如,我点击了下面的链接,在启动 httpd 时我得到了

  • 错误

启动 httpd:/etc/httpd/conf.d/git.conf 第 6 行的语法错误:此处不允许

链接 --> http://gofedora.com/how-to-install-configure-gitweb/

下面是 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]
4

0 回答 0