Note that there are some explanatory texts on larger screens.

plurals
  1. POInstalling GitWeb - How to
    primarykey
    data
    text
    <p>I've just installed Git on my production server and am hoping to get GitWeb working with it. I became very interested in getting it to work when I stumbled across a tutorial showing how to make git web work using...</p> <p>git instaweb -d webrick --start</p> <p>It works exactly as described in the tutorial at ... <a href="http://lostechies.com/jasonmeridth/2009/09/27/git-instaweb/" rel="nofollow">http://lostechies.com/jasonmeridth/2009/09/27/git-instaweb/</a></p> <p>However after reading other forums it seems like instaweb is not really meant to be used and instead I should set up GitWeb to run on Apache. </p> <p>I am fairly new to Apache so am not very familiar with what I should be doing. I've been following the tutorial at <a href="http://unix-heaven.org/node/31" rel="nofollow">http://unix-heaven.org/node/31</a> . But i don't think I need all of it. I think the only thing I need to do is put the following in my httpd.conf file...</p> <pre><code>&lt;VirtualHost *:80&gt; ServerAdmin &lt;a href="mailto:admin@example.org"&gt;admin@example.org&lt;/a&gt; ServerName git.example.org ServerAlias git-pub.example.org RedirectMatch ^/$ /gitweb.cgi SetEnv GITWEB_PROJECTROOT /cvs/codeRepository/git Alias /gitweb.js /srv/www/gitweb/static/gitweb.js Alias /gitweb.css /srv/www/gitweb/static/gitweb.css Alias /git-logo.png /srv/www/gitweb/static/git-logo.png Alias /git-favicon.png /srv/www/gitweb/static/git-favicon.png ScriptAlias / "/srv/www/gitweb/" &lt;Directory "/srv/www/gitweb/"&gt; AllowOverride None Options Indexes FollowSymLinks ExecCGI Order allow,deny Allow from all &lt;/Directory&gt; ErrorLog "/var/log/apache2/httpd-git-pub.example.org-access.log" CustomLog "/var/log/apache2/httpd-git-pub.example.org-error.log" common &lt;/VirtualHost&gt; </code></pre> <p>Where /srv/www/gitweb/ contains....</p> <pre><code>$:/srv/www/gitweb # ls -ltr total 252 -rwx------ 1 root root 247917 Feb 27 15:02 gitweb.cgi drwx------ 2 root root 4096 Feb 27 15:03 static </code></pre> <p>Will the config I've specified above work or I need to specify ? And if so what url will I access GitWeb at? Do I need serverName, serverAlias and serverAdmin? </p> <p>Thanks for your help</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload