I have a Git Repository setup and want to access the Repo through apache.
I edited localconfig.php file as:
* 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:
php_flag register_globals off
php_flag magic_quotes_gpc off
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
"You dont have permission to access /viewgit on this server
any idea what I am missing out?