Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerAdmin sassy.natan@home.local
- ServerName GIT
- ServerAlias GIT.home.local
- DocumentRoot /home/GIT/
- SetEnv GIT_PROJECT_ROOT /home/GIT
- SetEnv GIT_HTTP_EXPORT_ALL
- Alias /gitweb /usr/share/gitweb
- <Directory /usr/share/gitweb>
- Options FollowSymLinks +ExecCGI
- AddHandler cgi-script .cgi
- </Directory>
- ScriptAlias / /usr/lib/cgi-bin/gitweb.cgi/
- ScriptAliasMatch \
- "(?x)^/git/(.*/(HEAD | \
- info/refs | \
- objects/(info/[^/]+ | \
- [0-9a-f]{2}/[0-9a-f]{38} | \
- pack/pack-[0-9a-f]{40}\.(pack|idx)) | \
- git-(upload|receive)-pack))$" /usr/lib/git-core/git-http-backend/$1
- <Location />
- Dav On
- AuthType Basic
- AuthName "Home GIT Repository"
- Require valid-user
- AuthLDAPURL "ldap://dc01.home.local/OU=home,DC=home,DC=local?samAccountName?sub?(objectCategory=user)"
- AuthLDAPBindDN "git@home.local"
- AuthLDAPBindPassword xxxxxxxxxxxxxx
- AuthzLDAPAuthoritative off
- AuthBasicProvider ldap
- AuthzLDAPAuthoritative on
- Order allow,deny
- allow from all
- </Location>
- <Location /Applications>
- Allow from all
- Order allow,deny
- <Limit GET>
- require ldap-group CN=Applications,OU=Security Groups,OU=home,DC=home,DC=local
- </Limit>
- <Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
- require ldap-group CN=Applications,OU=Security Groups,OU=home,DC=home,DC=local
- </Limit>
- </Location>
- <Location /IT>
- Allow from all
- Order allow,deny
- <Limit GET>
- require ldap-group CN=IT,OU=Security Groups,OU=home,DC=home,DC=local
- </Limit>
- <Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
- require ldap-group CN=IT,OU=Security Groups,OU=home,DC=home,DC=local
- </Limit>
- </Location>
- ErrorLog /var/log/apache2/GIT.error.log
- # Possible values include: debug, info, notice, warn, error, crit,
- # alert, emerg.
- LogLevel warn
- CustomLog /var/log/apache2/GIT.access.log combined
- ServerSignature On
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement