Skip to content

Instantly share code, notes, and snippets.

@goozbach
Created May 21, 2009 20:19
Show Gist options
  • Save goozbach/115707 to your computer and use it in GitHub Desktop.
Save goozbach/115707 to your computer and use it in GitHub Desktop.
ScriptAlias /git/gitweb.cgi /srv/git/static-files/gitweb.cgi
ScriptAlias /git/gw /srv/git/static-files/gitweb.cgi
Alias /git/ /srv/git/
<Directory /srv/git/>
options followsymlinks indexes
order allow,deny
allow from all
# anything under /git/gw is treated as a gitweb paramater
RewriteEngine On
RewriteRule ^/git/gw/(.+)$ /git/gitweb.cgi?$1 [PT,L,QSA]
</directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment