Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin sassy.natan@home.local
  3. ServerName GIT
  4. ServerAlias GIT.home.local
  5. DocumentRoot /home/GIT/
  6.  
  7. SetEnv GIT_PROJECT_ROOT /home/GIT
  8. SetEnv GIT_HTTP_EXPORT_ALL
  9.  
  10. Alias /gitweb /usr/share/gitweb
  11.  
  12. <Directory /usr/share/gitweb>
  13. Options FollowSymLinks +ExecCGI
  14. AddHandler cgi-script .cgi
  15. </Directory>
  16.  
  17. ScriptAlias / /usr/lib/cgi-bin/gitweb.cgi/
  18. ScriptAliasMatch \
  19. "(?x)^/git/(.*/(HEAD | \
  20. info/refs | \
  21. objects/(info/[^/]+ | \
  22. [0-9a-f]{2}/[0-9a-f]{38} | \
  23. pack/pack-[0-9a-f]{40}\.(pack|idx)) | \
  24. git-(upload|receive)-pack))$" /usr/lib/git-core/git-http-backend/$1
  25.  
  26. <Location />
  27. Dav On
  28. AuthType Basic
  29. AuthName "Home GIT Repository"
  30. Require valid-user
  31. AuthLDAPURL "ldap://dc01.home.local/OU=home,DC=home,DC=local?samAccountName?sub?(objectCategory=user)"
  32. AuthLDAPBindDN "git@home.local"
  33. AuthLDAPBindPassword xxxxxxxxxxxxxx
  34. AuthzLDAPAuthoritative off
  35. AuthBasicProvider ldap
  36. AuthzLDAPAuthoritative on
  37. Order allow,deny
  38. allow from all
  39. </Location>
  40.  
  41. <Location /Applications>
  42. Allow from all
  43. Order allow,deny
  44. <Limit GET>
  45. require ldap-group CN=Applications,OU=Security Groups,OU=home,DC=home,DC=local
  46. </Limit>
  47. <Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
  48. require ldap-group CN=Applications,OU=Security Groups,OU=home,DC=home,DC=local
  49. </Limit>
  50. </Location>
  51.  
  52. <Location /IT>
  53. Allow from all
  54. Order allow,deny
  55. <Limit GET>
  56. require ldap-group CN=IT,OU=Security Groups,OU=home,DC=home,DC=local
  57. </Limit>
  58. <Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
  59. require ldap-group CN=IT,OU=Security Groups,OU=home,DC=home,DC=local
  60. </Limit>
  61. </Location>
  62.  
  63. ErrorLog /var/log/apache2/GIT.error.log
  64. # Possible values include: debug, info, notice, warn, error, crit,
  65. # alert, emerg.
  66. LogLevel warn
  67. CustomLog /var/log/apache2/GIT.access.log combined
  68. ServerSignature On
  69.  
  70. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement