Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 在RHEL中配置gitweb_Apache_Git_Gitweb - Fatal编程技术网

Apache 在RHEL中配置gitweb

Apache 在RHEL中配置gitweb,apache,git,gitweb,Apache,Git,Gitweb,我的安装程序是Red Hat Enterprise Linux。我已经成功安装了Git、gitosis、Gitweb和Apache软件包。然而,我还没有弄清楚如何配置Apache和gitweb。gitweb的大多数文档或多或少都是相同的,但我在执行此操作时出错。例如,我遵循下面的链接,在启动httpd时 错误 启动httpd:etc/httpd/conf.d/git.conf的第6行出现语法错误: 这里不允许 链接--> 下面是git.conf DocumentRoot /home/gi

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

  • 错误
启动httpd:etc/httpd/conf.d/git.conf的第6行出现语法错误: 这里不允许

链接-->

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

当您发布
git.conf
时,它可能会有所帮助,这样我们就可以看到您配置了什么。