CentOS Linuxでgitlistをセットアップしようとしています(gitoliteが重要な場合に備えて - gitoliteが管理するrepoディレクトリの権限を緩和しました)。gitlistはリポジトリリスト以外のものを取得できません
今日からgitlist.orgからバージョン0.3のtarballを抽出しました。
私のconfig.iniは、次のようになります。httpd.confの
client = '/usr/bin/git' ; Your git executable path
repositories = '/home/gitolite/repositories/' ; Path to your repositories
[app]
debug = true
; I don't know if baseurl is still needed..seems like my results are the same either way
baseurl = 'http://sub.example.com.com/gitlist' ; Base URL of the application
仮想ホストディレクティブ:
<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName sub.example.com
<Directory "/var/www/html">
AllowOverride All
Options -Indexes
</Directory>
</VirtualHost>
htaccessファイル:この設定で
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /var/www/html/gitlist/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,NC]
AuthName "Git List"
AuthType Basic
AuthUserFile /var/www/.gitlistpwds
Require valid-user
</IfModule>
<Files config.ini>
order allow,deny
deny from all
</Files>
、http://sub.example.com/gitlistに行きます/index.phpが存在しないことを示すブラウザのエラーメッセージが表示されます(つまり、実行しようとしています)。 /var/www/html/index.php)
この場合、http://sub.example.com/gitlist/index.phpに行くと、リポジトリリスト(明らかに)が正しく表示されます。 reposのいずれかをクリックすると、実行しようとすると何かがうまくいかない、git。私が手:
Whoops, looks like something went wrong.
1/1 RuntimeException: Unknown option: -c
(std git usage message omitted)
私は.htaccessファイルからの書き換えルールを削除すると、私はどちらかがindex.phpのかを指定することで、インデックスページにアクセスできるようにしています。しかし、その場合、私はレポをクリックしたとき、それはgitlistディレクトリの下にレポを見つけようとして:
The requested URL /gitlist/testing.git/ was not found on this server.
誰かがこの混乱を整理助けてくださいことはできますか?
なぜ書き換えられますか?エイリアスとディレクトリを宣言して、必要な場所にgitlist webappを置くと、十分なはずです(https://github.com/VonC/compileEverything/blob/master/apache/env.conf.tpl#L41-L93のように)。 ) – VonC
書き換えは、アプリケーションの一部です(それを含む.htaccessとともに出荷されます)。なぜそこにいるのかわかりません。私が指摘したように、私はそれを試してみたが、まだ問題があった。あなたが私のウェブディレクトリの外にそれを移動すると、問題は消え去るだろうと言っていますか? –
私は、リライトを使わずにWebアプリケーションを参照する他のテクニックを指摘しています。私はgitlistをテストし、それがあまりにも機能するかどうかを見なければならないでしょう。 – VonC