我剛剛在我的生產服務器上安裝了Git,希望能夠讓GitWeb與它一起工作。我成了得到它,當我遇到顯示如何使用做出混帳網絡工作的教程迷迷糊糊的工作很感興趣......安裝GitWeb - 如何
混帳instaweb -d的WEBrick --start
它的工作原理完全一樣在本教程中介紹在... http://lostechies.com/jasonmeridth/2009/09/27/git-instaweb/
但是在閱讀其他論壇後,好像instaweb並不是真正意義上的使用,而是我應該設置GitWeb以在Apache上運行。
我對Apache很新,所以我不太瞭解我應該做什麼。我一直在按照教程http://unix-heaven.org/node/31。但我不認爲我需要這一切。我想,我需要做的唯一事情就是把我的httpd.conf文件以下...
<VirtualHost *:80>
ServerAdmin <a href="mailto:[email protected]">[email protected]</a>
ServerName git.example.org
ServerAlias git-pub.example.org
RedirectMatch ^/$ /gitweb.cgi
SetEnv GITWEB_PROJECTROOT /cvs/codeRepository/git
Alias /gitweb.js /srv/www/gitweb/static/gitweb.js
Alias /gitweb.css /srv/www/gitweb/static/gitweb.css
Alias /git-logo.png /srv/www/gitweb/static/git-logo.png
Alias /git-favicon.png /srv/www/gitweb/static/git-favicon.png
ScriptAlias/"/srv/www/gitweb/"
<Directory "/srv/www/gitweb/">
AllowOverride None
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
</Directory>
ErrorLog "/var/log/apache2/httpd-git-pub.example.org-access.log"
CustomLog "/var/log/apache2/httpd-git-pub.example.org-error.log" common
</VirtualHost>
凡/ SRV /網絡/的GitWeb /包含....
$:/srv/www/gitweb # ls -ltr
total 252
-rwx------ 1 root root 247917 Feb 27 15:02 gitweb.cgi
drwx------ 2 root root 4096 Feb 27 15:03 static
威爾我上面指定的配置工作或我需要指定?如果是的話,我將訪問GitWeb的網址是什麼?我需要serverName,serverAlias和serverAdmin嗎?
感謝您的幫助
缺什麼? – VonC 2013-03-13 10:04:00