Created
October 4, 2012 18:02
-
-
Save ojacobson/3835320 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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