Skip to content

Instantly share code, notes, and snippets.

@ojacobson
Created October 4, 2012 18:02
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 ojacobson/3835320 to your computer and use it in GitHub Desktop.
Save ojacobson/3835320 to your computer and use it in GitHub Desktop.
$ ssh dev.example.com cat /etc/apache2/sites-available/git.example.com
<VirtualHost *:80>
ServerName git.example.com
DocumentRoot /usr/share/gitweb
<Directory /usr/share/gitweb>
Options FollowSymLinks +ExecCGI
AddHandler cgi-script .cgi
</Directory>
<Location />
AuthType Basic
AuthName "Example Git Viewer"
AuthBasicProvider ldap
# ldap-configuration gubbins elided
Require valid-user
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment