Skip to content

Instantly share code, notes, and snippets.

@Eric-Guo
Forked from cdwilson/git
Created March 24, 2012 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Eric-Guo/2182287 to your computer and use it in GitHub Desktop.
Save Eric-Guo/2182287 to your computer and use it in GitHub Desktop.
ubuntu apache config for git virtual host - /etc/apache2/conf.d/git
# http://computercamp.cdwilson.us/git-gitolite-git-daemon-gitweb-setup-on-ubunt
<VirtualHost *:80>
ServerName git.server
ServerAdmin webmaster@git.server
DocumentRoot /usr/share/gitweb
<Directory /usr/share/gitweb>
Options FollowSymLinks ExecCGI
AddHandler cgi-script cgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.* /index.cgi/$0 [L,PT]
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment