0

私のセットアップはRedHatEnterpriseLinuxです。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