Gitweb
Zur Navigation springen
Zur Suche springen
install
- apt-get install git gitweb
create dir
- mkdir /var/cache/git
config
- /etc/gitweb.conf
$projectroot = "/var/git"; $git_temp = "/tmp"; @diff_opts = ();
- /etc/apache/sites-available/gitweb.conf
<VirtualHost 10.82.10.22:80>
DocumentRoot /var/cache/git
SetEnv GITWEB_CONFIG /etc/gitweb.conf
Alias /static/gitweb.css /usr/share/gitweb/static/gitweb.css
Alias /static/gitweb.js /usr/share/gitweb/static/gitweb.js
Alias /static/git-favicon.png /usr/share/gitweb/static/git-favicon.png
Alias /static/git-logo.png /usr/share/gitweb/static/git-logo.png
ScriptAlias /gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi
DirectoryIndex gitweb.cgi
ErrorLog "/var/log/apache2/gitweb-error.log"
ServerSignature Off
CustomLog "/var/log/apache2/gitweb-access.log" combined
<Directory /var/cache/git/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Include conf-available/serve-cgi-bin.conf
</VirtualHost>