Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetEnv GIT_PROJECT_ROOT /var/www/html/git
- SetEnv GIT_HTTP_EXPORT_ALL
- ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
- <Directory /usr/lib/git-core>
- Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
- AuthType Basic
- AuthName "Authentication Required"
- AuthUserFile "/etc/apache2/.htpasswd"
- AuthGroupFile "/etc/apache2/groups"
- Require group ADMIN GITGROUP
- Order allow,deny
- Allow from all
- </Directory>
- <Directory /var/www/html/git>
- AuthType Basic
- AuthName "Authentication Required"
- AuthUserFile "/etc/apache2/.htpasswd"
- AuthGroupFile "/etc/apache2/groups"
- Require group ADMIN
- Options -Indexes
- Order allow,deny
- Allow from all
- </Directory>
- <Directory /var/www/html/git/subdir>
- AuthType Basic
- AuthName "Authentication Required"
- AuthUserFile "/etc/apache2/.htpasswd"
- AuthGroupFile "/etc/apache2/groups"
- Require group ADMIN GITGROUP
- Options -Indexes
- Order allow,deny
- Allow from all
- </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement