-
Notifications
You must be signed in to change notification settings - Fork 518
Configuring Gitlist in CENTOS7
Le Sandie edited this page Mar 11, 2016
·
2 revisions
- Download gitlist stable version
- Install it under /var/www/html and make sure that in the httpd.conf that directory has the following options:
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
- Copy config.ini-example to config.ini and change the repositories and hidden properties to your likes:
[git]
client = '/usr/bin/git' ; Your git executable path
default_branch = 'master' ; Default branch when HEAD is detached
repositories[] = '/var/www/html/' ;Path to your repositories
hidden[] = '/var/www/html/opcache-gui';You can hide repositories from GitList
- Edit .htaccess and change the RewriteBase url to /gitlist/ if you are going to use an alias directory instead of a VirtualHost (for example http://localhost/gitlist). If not leave commented:
<IfModule mod_rewrite.c>
Options -MultiViews +SymLinksIfOwnerMatch
RewriteEngine On
RewriteBase /gitlist/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [L,NC]
</ifmodule>
<Files config.ini>
order allow,deny
deny from all
</files>
- Edit /etc/httpd/conf.d/gitlist.conf
Alias /gitlist /var/www/html/gitlist
<Directory /var/www/html/gitlist/>
Options FollowSymLinks
AllowOverride All
</directory>
- Restart httpd