Advertisement
Guest User

Untitled

a guest
Jun 16th, 2016
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <VirtualHost *:80>
  2. # Proxy to the Backend Server
  3. ProxyRequests Off
  4. ProxyPreserveHost on
  5. AllowEncodedSlashes NoDecode
  6. ProxyPass /git/ !
  7. ProxyPass / http://localhost:9000/ nocanon
  8.  
  9. # Git Backend Configuration
  10. #DocumentRoot /var/git
  11. SetEnv GIT_PROJECT_ROOT /var/git
  12. SetEnv GIT_HTTP_EXPORT_ALL
  13. ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
  14.  
  15. RewriteCond %{QUERY_STRING} service=git-receive-pack [OR]
  16. RewriteCond %{REQUEST_URI} /git-receive-pack$
  17. RewriteRule ^/git/ - [E=AUTHREQUIRED:yes]
  18.  
  19. #<Directory "/var/git">
  20. # Require all granted
  21. # Options +Indexes
  22. #</Directory>
  23.  
  24. <LocationMatch "^/git/">
  25. Order Deny,Allow
  26. Deny from env=AUTHREQUIRED
  27. AuthType Basic
  28. AuthName "Git Access"
  29. AuthBasicProvider file
  30. AuthUserFile "/usr/local/apache/passwd/passwords"
  31. AuthGroupFile "/usr/local/apache/passwd/groups"
  32. Require group committers
  33. Satisfy Any
  34. </LocationMatch>
  35.  
  36. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement