Changes

From Amahi Wiki
Jump to: navigation, search
No change in size ,  22:46, 13 March 2012
SetEnv GITWEB_CONFIG "/etc/gitweb.conf"
AddHandler cgi-script .cgi}}</li>
<li>Edit ''/etc/httpd/conf.d/git.conf'' and text to the bottom
{{Text|Text=<Directory /var/hda/web-apps/gitweb/html>
RewriteEngine On
RewriteBase /git/
RewriteRule ^$ gitweb.cgi [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) gitweb.cgi/$1 [QSA,L]
</Directory>}}</li>
<li>Restart web server to enable the changes
{{Code|/etc/init.d/httpd restart;}}</li>
chkconfig git on
service git start}}</li>
<li>Edit ''/etc/httpd/conf.d/git.conf'' and text to the bottom
{{Text|Text=<Directory /var/hda/web-apps/gitweb/html>
RewriteEngine On
RewriteBase /git/
RewriteRule ^$ gitweb.cgi [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) gitweb.cgi/$1 [QSA,L]
</Directory>}}</li>
<li>Create repository
{{Code|cd /var/cache/git/
12,424

edits