* gitweb with multiple projectroot ???
@ 2012-06-05 12:10 J. Bakshi
2012-06-06 7:15 ` J. Bakshi
0 siblings, 1 reply; 4+ messages in thread
From: J. Bakshi @ 2012-06-05 12:10 UTC (permalink / raw)
To: git
Dear list,
My gitweb has been running since long with a single project root, which
has been defined at the /etc/gitweb.conf through $projectroot variable.
I need one more project root for gitweb, hence I have added this apache config
( not a vhost, but just calling by alias)
````````````````````
SetEnv GIT_PROJECT_ROOT /home/newgit/
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv GITWEB_CONFIG /home/newgit/gitweb.conf
#git is strict about the authenticated SSL certificate only
#disable the strict CA certificate check
SetEnv GIT_SSL_NO_VERIFY
AliasMatch ^/newgit/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /home/newgit/$1
AliasMatch ^/newgit/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /home/newgit/$1
ScriptAliasMatch \
"(?x)^/newgit/(.*/(HEAD | \
info/refs | \
objects/info/[^/]+ | \
git-(upload|receive)-pack))$" \
/usr/lib/git-core/git-http-backend/$1
#same location for gitweb
Alias /newgit /usr/share/gitweb
<Directory /usr/share/gitweb>
Options FollowSymLinks +ExecCGI
AddHandler cgi-script .cgi
</Directory>
#force https and authentication
<LocationMatch "/newgit">
# Require SSL connection for password protection.
SSLRequireSSL
AuthType Basic
# Message to give to the committer
AuthName "access requires a password"
# File listing users with write (commit) access
AuthUserFile /home/newgit/PASSWD
Require valid-user
</LocationMatch>
`````````````````````````````````````````SetEnv
But "SetEnv GITWEB_CONFIG" as well as other SetEnv ( like SetEnv GIT_SSL_NO_VERIFY )
is not been taken and as an effect the gitweb processing the default /etc/gitweb.conf and going to the
old projectroot.
What am I missing here ? any clue ?
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gitweb with multiple projectroot ???
2012-06-05 12:10 gitweb with multiple projectroot ??? J. Bakshi
@ 2012-06-06 7:15 ` J. Bakshi
2012-06-08 7:57 ` J. Bakshi
0 siblings, 1 reply; 4+ messages in thread
From: J. Bakshi @ 2012-06-06 7:15 UTC (permalink / raw)
Cc: git
>From the http://www.kernel.org/pub/software/scm/git/docs/v1.7.8/gitweb.html
I have found the following
[.........]
Here actual project root is passed to gitweb via GITWEB_PROJECT_ROOT environment variable from a web server,
so you need to put the following line in gitweb configuration file (/etc/gitweb.conf in above example):
$projectroot = $ENV{'GITWEB_PROJECTROOT'} || "/pub/git";
Note that this requires to be set for each request, so either $per_request_config must be false,
or the above must be put in code referenced by $per_request_config;
[.........]
I have already set
$per_request_config = 'false';
at /etc/gitweb.conf but no effect.
I appreciate if anyone put me on the right track.
Thanks
On Tue, 5 Jun 2012 17:40:28 +0530
"J. Bakshi" <joydeep.bakshi@infoservices.in> wrote:
> Dear list,
>
> My gitweb has been running since long with a single project root, which
> has been defined at the /etc/gitweb.conf through $projectroot variable.
>
> I need one more project root for gitweb, hence I have added this apache config
> ( not a vhost, but just calling by alias)
>
> ````````````````````
>
> SetEnv GIT_PROJECT_ROOT /home/newgit/
> SetEnv GIT_HTTP_EXPORT_ALL
> SetEnv GITWEB_CONFIG /home/newgit/gitweb.conf
> #git is strict about the authenticated SSL certificate only
> #disable the strict CA certificate check
> SetEnv GIT_SSL_NO_VERIFY
>
> AliasMatch ^/newgit/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /home/newgit/$1
> AliasMatch ^/newgit/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /home/newgit/$1
> ScriptAliasMatch \
> "(?x)^/newgit/(.*/(HEAD | \
> info/refs | \
> objects/info/[^/]+ | \
> git-(upload|receive)-pack))$" \
> /usr/lib/git-core/git-http-backend/$1
>
> #same location for gitweb
> Alias /newgit /usr/share/gitweb
> <Directory /usr/share/gitweb>
> Options FollowSymLinks +ExecCGI
> AddHandler cgi-script .cgi
> </Directory>
>
> #force https and authentication
> <LocationMatch "/newgit">
> # Require SSL connection for password protection.
> SSLRequireSSL
> AuthType Basic
> # Message to give to the committer
> AuthName "access requires a password"
> # File listing users with write (commit) access
> AuthUserFile /home/newgit/PASSWD
> Require valid-user
> </LocationMatch>
>
> `````````````````````````````````````````SetEnv
>
> But "SetEnv GITWEB_CONFIG" as well as other SetEnv ( like SetEnv GIT_SSL_NO_VERIFY )
> is not been taken and as an effect the gitweb processing the default /etc/gitweb.conf and going to the
> old projectroot.
>
> What am I missing here ? any clue ?
>
> Thanks
> --
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gitweb with multiple projectroot ???
2012-06-06 7:15 ` J. Bakshi
@ 2012-06-08 7:57 ` J. Bakshi
0 siblings, 0 replies; 4+ messages in thread
From: J. Bakshi @ 2012-06-08 7:57 UTC (permalink / raw)
Cc: git
Any head up ?
On Wed, 6 Jun 2012 12:45:38 +0530
"J. Bakshi" <joydeep.bakshi@infoservices.in> wrote:
>
> From the http://www.kernel.org/pub/software/scm/git/docs/v1.7.8/gitweb.html
> I have found the following
>
> [.........]
>
> Here actual project root is passed to gitweb via GITWEB_PROJECT_ROOT environment variable from a web server,
> so you need to put the following line in gitweb configuration file (/etc/gitweb.conf in above example):
>
> $projectroot = $ENV{'GITWEB_PROJECTROOT'} || "/pub/git";
>
> Note that this requires to be set for each request, so either $per_request_config must be false,
> or the above must be put in code referenced by $per_request_config;
>
> [.........]
>
>
> I have already set
>
> $per_request_config = 'false';
>
> at /etc/gitweb.conf but no effect.
>
> I appreciate if anyone put me on the right track.
>
> Thanks
>
> On Tue, 5 Jun 2012 17:40:28 +0530
> "J. Bakshi" <joydeep.bakshi@infoservices.in> wrote:
>
> > Dear list,
> >
> > My gitweb has been running since long with a single project root, which
> > has been defined at the /etc/gitweb.conf through $projectroot variable.
> >
> > I need one more project root for gitweb, hence I have added this apache config
> > ( not a vhost, but just calling by alias)
> >
> > ````````````````````
> >
> > SetEnv GIT_PROJECT_ROOT /home/newgit/
> > SetEnv GIT_HTTP_EXPORT_ALL
> > SetEnv GITWEB_CONFIG /home/newgit/gitweb.conf
> > #git is strict about the authenticated SSL certificate only
> > #disable the strict CA certificate check
> > SetEnv GIT_SSL_NO_VERIFY
> >
> > AliasMatch ^/newgit/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /home/newgit/$1
> > AliasMatch ^/newgit/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /home/newgit/$1
> > ScriptAliasMatch \
> > "(?x)^/newgit/(.*/(HEAD | \
> > info/refs | \
> > objects/info/[^/]+ | \
> > git-(upload|receive)-pack))$" \
> > /usr/lib/git-core/git-http-backend/$1
> >
> > #same location for gitweb
> > Alias /newgit /usr/share/gitweb
> > <Directory /usr/share/gitweb>
> > Options FollowSymLinks +ExecCGI
> > AddHandler cgi-script .cgi
> > </Directory>
> >
> > #force https and authentication
> > <LocationMatch "/newgit">
> > # Require SSL connection for password protection.
> > SSLRequireSSL
> > AuthType Basic
> > # Message to give to the committer
> > AuthName "access requires a password"
> > # File listing users with write (commit) access
> > AuthUserFile /home/newgit/PASSWD
> > Require valid-user
> > </LocationMatch>
> >
> > `````````````````````````````````````````SetEnv
> >
> > But "SetEnv GITWEB_CONFIG" as well as other SetEnv ( like SetEnv GIT_SSL_NO_VERIFY )
> > is not been taken and as an effect the gitweb processing the default /etc/gitweb.conf and going to the
> > old projectroot.
> >
> > What am I missing here ? any clue ?
> >
> > Thanks
> > --
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* gitweb with multiple projectroot ???
@ 2012-06-04 13:37 J. Bakshi
0 siblings, 0 replies; 4+ messages in thread
From: J. Bakshi @ 2012-06-04 13:37 UTC (permalink / raw)
To: git
Dear list,
My gitweb has been running since long with a single project root, which
has been defined at the /etc/gitweb.conf through $projectroot variable.
I need one more project root for gitweb, hence I have added this apache config
( not a vhost, but just calling by alias)
````````````````````
SetEnv GIT_PROJECT_ROOT /home/newgit/
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv GITWEB_CONFIG /home/newgit/gitweb.conf
#git is strict about the authenticated SSL certificate only
#disable the strict CA certificate check
SetEnv GIT_SSL_NO_VERIFY
AliasMatch ^/newgit/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /home/newgit/$1
AliasMatch ^/newgit/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /home/newgit/$1
ScriptAliasMatch \
"(?x)^/newgit/(.*/(HEAD | \
info/refs | \
objects/info/[^/]+ | \
git-(upload|receive)-pack))$" \
/usr/lib/git-core/git-http-backend/$1
#same location for gitweb
Alias /newgit /usr/share/gitweb
<Directory /usr/share/gitweb>
Options FollowSymLinks +ExecCGI
AddHandler cgi-script .cgi
</Directory>
#force https and authentication
<LocationMatch "/newgit">
# Require SSL connection for password protection.
SSLRequireSSL
AuthType Basic
# Message to give to the committer
AuthName "access requires a password"
# File listing users with write (commit) access
AuthUserFile /home/newgit/PASSWD
Require valid-user
</LocationMatch>
`````````````````````````````````````````SetEnv
But "SetEnv GITWEB_CONFIG" as well as other SetEnv ( like SetEnv GIT_SSL_NO_VERIFY )
is not been taken and as an effect the gitweb processing the default /etc/gitweb.conf and going to the
old projectroot.
What am I missing here ? any clue ?
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-06-08 7:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-05 12:10 gitweb with multiple projectroot ??? J. Bakshi
2012-06-06 7:15 ` J. Bakshi
2012-06-08 7:57 ` J. Bakshi
-- strict thread matches above, loose matches on Subject: below --
2012-06-04 13:37 J. Bakshi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).