Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SetEnv GIT_PROJECT_ROOT /var/www/html/git
  2. SetEnv GIT_HTTP_EXPORT_ALL
  3. ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
  4. <Directory /usr/lib/git-core>
  5.     Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  6.     AuthType Basic
  7.     AuthName "Authentication Required"
  8.     AuthUserFile "/etc/apache2/.htpasswd"
  9.     AuthGroupFile "/etc/apache2/groups"
  10.     Require group ADMIN GITGROUP
  11.  
  12.     Order allow,deny
  13.     Allow from all
  14. </Directory>
  15. <Directory /var/www/html/git>
  16.     AuthType Basic
  17.     AuthName "Authentication Required"
  18.     AuthUserFile "/etc/apache2/.htpasswd"
  19.     AuthGroupFile "/etc/apache2/groups"
  20.     Require group ADMIN
  21.     Options -Indexes
  22.  
  23.     Order allow,deny
  24.     Allow from all
  25. </Directory>
  26. <Directory /var/www/html/git/subdir>
  27.     AuthType Basic
  28.     AuthName "Authentication Required"
  29.     AuthUserFile "/etc/apache2/.htpasswd"
  30.     AuthGroupFile "/etc/apache2/groups"
  31.     Require group ADMIN GITGROUP
  32.     Options -Indexes
  33.  
  34.     Order allow,deny
  35.     Allow from all
  36. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement