Changes RSS

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

guides:git [2010/12/02 23:50]
fishy
guides:git [2010/12/03 17:40] (current)
fishy home_link_str
Line 311: Line 311:
 <code> <code>
 apt-get install -t lenny-backports gitweb apt-get install -t lenny-backports gitweb
-sed -i -e 's/projectroot.*=.*$/projectroot = "\/var\/www\/git.example.com";/' /etc/gitweb.conf 
 </code> </code>
  
Line 324: Line 323:
  
         ScriptAlias / /usr/share/gitweb/index.cgi/         ScriptAlias / /usr/share/gitweb/index.cgi/
 +        
 +        <Directory /var/www/git.example.com/.gitweb>
 +                AllowOverride None
 +                Order deny,allow
 +                deny from all
 +        </Directory>
 +        <Location "/private">
 +                AuthType Basic
 +                AuthName "Git Private"
 +                AuthUserFile /var/www/git.example.com/.passdb/private_users
 +                Require valid-user
 +        </Location>
 +
 +</code>
 +
 +<code>
 +cat << EOF > /etc/gitweb.conf
 +# path to git projects (<project>.git)
 +$projectroot = "/var/www/git.example.com";
 +
 +# directory to use for temp files
 +$git_temp = "/tmp";
 +
 +# target of the home link on top of all pages
 +#$home_link = $my_uri || "/";
 +
 +# html text to include at home page
 +# $home_text = "indextext.html";
 +$home_text = "/var/www/git.example.com/.gitweb/index.inc";
 +
 +# The text on the home link in the breadcrumbs
 +$home_link_str = "git.example.com";
 +
 +# file with project list
 +$projects_list = "/var/www/git.example.com/.gitweb/list";
 +
 +# Hide any repo not listed in the $projects_list
 +$strict_export = 1;
 +
 +# stylesheet to use
 +$stylesheet = "/gitweb/gitweb.css";
 +
 +# logo to use
 +$logo = "/gitweb/git-logo.png";
 +
 +# the 'favicon'
 +$favicon = "/gitweb/git-favicon.png";
 +EOF
 +
 +echo "Example text" > /var/www/git.example.com/.gitweb/index.inc
 +ls | grep -v private | awk ' { print $1 " Me" }' > /var/www/git.example.com/.gitweb/list 
 </code> </code>