[openib-general] Initial Plan for userspace git trees
Sasha Khapyorsky
sashak at voltaire.com
Mon Nov 27 16:01:17 PST 2006
On 14:03 Mon 27 Nov , Michael S. Tsirkin wrote:
> > Quoting r. Sasha Khapyorsky <sashak at voltaire.com>:
> > > Sasha, what would it take for clones with dump transports to be supported?
> > > http is of special interest as it often is allowed through firewalls.
> >
> > Good idea. For http:// access we will need to configure apache.
> >
> > > I tried git clone http://staging.openfabrics.org/~mst/mstflint.git but
Seems some sort of http:// is working now.
Git trees from /pub/scm are available via http:// as:
http://staging.openfabrics.org/<path-to-proj-under-/pub/scm>.git
http://staging.openfabrics.org/scm/<path-to-proj-under-/pub/scm>.git
http://staging.openfabrics.org/pub/scm/<path-to-proj-under-/pub/scm>.git
Please note, that URL requests to users' home directories like:
http://staging.openfabrics.org/~user/<proj>.git
will _not_ go to /pub/scm/~user/ , but to user's public html directories
~user/public_html/<proj>.git . So if you wish to provide http:// access
to your "~user" trees you will need to place this git tree (or symbolic
link to this git tree) under ~/public_html .
For instance with mstflint.git it may be something like this:
mkdir ~/public_html
ln -s ~/scm/mstflint.git ~/public_html/mstflint.git
Apache experts! Git and gitweb related additions to apache config at
stating.openfabrics.org are below. Please review! Thanks.
Sasha
RewriteEngine on
#RewriteLog "/var/log/apache2/rewrite.log"
#RewriteLogLevel 3
RewriteCond %{REQUEST_URI} ^/.*\.git/.*$
RewriteCond %{REQUEST_URI} !^/(pub/)?scm/.*$
RewriteCond %{REQUEST_URI} !^/git(web)?/.*$
RewriteCond %{REQUEST_URI} !^/~.*$
RewriteRule ^/.*\.git/.*$ /pub/scm%{REQUEST_URI} [L,PT]
Alias /pub/scm "/pub/scm/"
Alias /scm "/pub/scm/"
<Directory "/pub/scm/">
AllowOverride None
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Alias /git "/var/www/gitweb/"
Alias /gitweb "/var/www/gitweb/"
<Directory "/var/www/gitweb/">
AllowOverride None
Options ExecCGI
DirectoryIndex gitweb.cgi
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
SetEnv GITWEB_CONFIG /etc/gitweb.conf
</Directory>
More information about the general
mailing list