Subject: Bug#242: Provide HTTP access to git repository

From: Heinrich Schuchardt <[email-masked]>
Date: Sun, 16 Jun 2013 16:40:11 +0200

Package: git.x2go.org
Severity: wishlist

Dear maintainer,

the X2GO repository can be reached via the following protocols:
ssh, port 22
git, port 9118

Unfortunately these ports may not be reachable from behind a firewall.

Please, setup your webserver to allow access to the repositories via 
https or http.

For Apache this can be done with

# Indicate were the git repositories are located.
SetEnv GIT_PROJECT_ROOT /home/git/root

# Indicate git-daemon-export-ok is not needed.
SetEnv GIT_HTTP_EXPORT_ALL

# Location of git backend
ScriptAlias /git /usr/lib/git-core/git-http-backend

# Disallow pushing to repository via HTTP.
<LocationMatch "^/git/.*/git-receive-pack$">
   Order allow,deny
   Deny from all
</LocationMatch>

Best regards

Heinrich Schuchardt