I have a Git Repository setup and want to access the Repo through apache.
I edited localconfig.php file as:
Code:
<?php
/** @file
* Example localconfig.php. See config.php for more information.
*/
// This is the only mandatory setting
$conf['projects'] = array(
'GIT' => array('repo' => '/home/radon/repository/.git'),
);
// A bit sorter datetime format: YY-MM-DD HH:MM
$conf['datetime'] = '%y-%m-%d %H:%M';
// Extra security
$conf['allow_checkout'] = false;
<?
Copied example-htaccess to .htaccess and modified:
Code:
Options -Indexes
php_flag register_globals off
php_flag magic_quotes_gpc off
RewriteEngine On
RewriteBase /var/www/html/viewgit/
RewriteRule ^([^.]*).git/(.*) ?a=co&p=$1&r=$2
~
Juts for Your Information, I have migrated SVN Repo today to GIT and I migrated with user radon.
Now Whenever I open
http://localhost/viewgit,
it shows
Code:
"You dont have permission to access /viewgit on this server
any idea what I am missing out?