{"thread":{"id":"30715","subject":"gitweb with multiple projectroot ???","startedAt":"2012-06-05T12:10:28Z","lastAt":"2012-06-08T07:57:19Z","messageCount":3,"participants":["J. Bakshi"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"192895","messageId":"20120605174028.15e6af39@shiva.selfip.org","threadId":"30715","inReplyTo":null,"subject":"gitweb with multiple projectroot ???","fromName":"J. Bakshi","fromEmail":"joydeep.bakshi@infoservices.in","sentAt":"2012-06-05T12:10:28Z","receivedAt":"2012-06-05T12:10:28Z","isPatch":false,"sender":{"key":"joydeep.bakshi@infoservices.in","avatar":null},"body":"Dear list,\n\nMy gitweb has been running since long with a single project root, which\nhas been defined at the /etc/gitweb.conf through $projectroot variable.\n\nI need one more project root for gitweb, hence I have added this apache config\n( not a vhost, but just calling by alias)\n\n````````````````````\n \nSetEnv GIT_PROJECT_ROOT /home/newgit/\nSetEnv GIT_HTTP_EXPORT_ALL\nSetEnv  GITWEB_CONFIG  /home/newgit/gitweb.conf\n#git is strict about the authenticated SSL certificate only\n#disable the strict CA certificate check\nSetEnv GIT_SSL_NO_VERIFY \n\nAliasMatch ^/newgit/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$       /home/newgit/$1\nAliasMatch ^/newgit/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /home/newgit/$1\nScriptAliasMatch \\\n        \"(?x)^/newgit/(.*/(HEAD | \\\n                        info/refs | \\\n                        objects/info/[^/]+ | \\\n                        git-(upload|receive)-pack))$\" \\\n        /usr/lib/git-core/git-http-backend/$1\n\n#same location for gitweb\nAlias /newgit /usr/share/gitweb\n<Directory /usr/share/gitweb>\nOptions FollowSymLinks +ExecCGI\nAddHandler cgi-script .cgi\n</Directory>\n\n#force https and authentication\n<LocationMatch \"/newgit\">\n# Require SSL connection for password protection.\nSSLRequireSSL\nAuthType Basic\n# Message to give to the committer\nAuthName \"access requires a password\"\n# File listing users with write (commit) access\nAuthUserFile /home/newgit/PASSWD\nRequire valid-user\n</LocationMatch>\n\n`````````````````````````````````````````SetEnv\n\nBut \"SetEnv  GITWEB_CONFIG\" as well as other SetEnv ( like SetEnv GIT_SSL_NO_VERIFY )\nis not been taken and as an effect the gitweb processing the default /etc/gitweb.conf and going to the\nold projectroot.\n\nWhat am I missing here ? any clue ?\n\nThanks\n"},{"id":"192968","messageId":"20120606124538.4fdd8610@shiva.selfip.org","threadId":"30715","inReplyTo":"20120605174028.15e6af39@shiva.selfip.org","subject":"Re: gitweb with multiple projectroot ???","fromName":"J. Bakshi","fromEmail":"joydeep.bakshi@infoservices.in","sentAt":"2012-06-06T07:15:38Z","receivedAt":"2012-06-06T07:15:38Z","isPatch":false,"sender":{"key":"joydeep.bakshi@infoservices.in","avatar":null},"body":"\n>From the http://www.kernel.org/pub/software/scm/git/docs/v1.7.8/gitweb.html\nI have found the following\n\n[.........]\n\nHere actual project root is passed to gitweb via GITWEB_PROJECT_ROOT environment variable from a web server,\nso you need to put the following line in gitweb configuration file (/etc/gitweb.conf in above example):\n\n$projectroot = $ENV{'GITWEB_PROJECTROOT'} || \"/pub/git\";\n\nNote that this requires to be set for each request, so either $per_request_config must be false, \nor the above must be put in code referenced by $per_request_config;\n\n[.........]\n\n\nI have already set  \n\n$per_request_config = 'false';\n\nat /etc/gitweb.conf but no effect. \n\nI appreciate if anyone put me on the right track.\n\nThanks\n\nOn Tue, 5 Jun 2012 17:40:28 +0530\n\"J. Bakshi\" <joydeep.bakshi@infoservices.in> wrote:\n\n> Dear list,\n> \n> My gitweb has been running since long with a single project root, which\n> has been defined at the /etc/gitweb.conf through $projectroot variable.\n> \n> I need one more project root for gitweb, hence I have added this apache config\n> ( not a vhost, but just calling by alias)\n> \n> ````````````````````\n>  \n> SetEnv GIT_PROJECT_ROOT /home/newgit/\n> SetEnv GIT_HTTP_EXPORT_ALL\n> SetEnv  GITWEB_CONFIG  /home/newgit/gitweb.conf\n> #git is strict about the authenticated SSL certificate only\n> #disable the strict CA certificate check\n> SetEnv GIT_SSL_NO_VERIFY \n> \n> AliasMatch ^/newgit/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$       /home/newgit/$1\n> AliasMatch ^/newgit/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /home/newgit/$1\n> ScriptAliasMatch \\\n>         \"(?x)^/newgit/(.*/(HEAD | \\\n>                         info/refs | \\\n>                         objects/info/[^/]+ | \\\n>                         git-(upload|receive)-pack))$\" \\\n>         /usr/lib/git-core/git-http-backend/$1\n> \n> #same location for gitweb\n> Alias /newgit /usr/share/gitweb\n> <Directory /usr/share/gitweb>\n> Options FollowSymLinks +ExecCGI\n> AddHandler cgi-script .cgi\n> </Directory>\n> \n> #force https and authentication\n> <LocationMatch \"/newgit\">\n> # Require SSL connection for password protection.\n> SSLRequireSSL\n> AuthType Basic\n> # Message to give to the committer\n> AuthName \"access requires a password\"\n> # File listing users with write (commit) access\n> AuthUserFile /home/newgit/PASSWD\n> Require valid-user\n> </LocationMatch>\n> \n> `````````````````````````````````````````SetEnv\n> \n> But \"SetEnv  GITWEB_CONFIG\" as well as other SetEnv ( like SetEnv GIT_SSL_NO_VERIFY )\n> is not been taken and as an effect the gitweb processing the default /etc/gitweb.conf and going to the\n> old projectroot.\n> \n> What am I missing here ? any clue ?\n> \n> Thanks\n> --\n"},{"id":"193126","messageId":"20120608132719.60263607@shiva.selfip.org","threadId":"30715","inReplyTo":"20120606124538.4fdd8610@shiva.selfip.org","subject":"Re: gitweb with multiple projectroot ???","fromName":"J. Bakshi","fromEmail":"joydeep.bakshi@infoservices.in","sentAt":"2012-06-08T07:57:19Z","receivedAt":"2012-06-08T07:57:19Z","isPatch":false,"sender":{"key":"joydeep.bakshi@infoservices.in","avatar":null},"body":"\n Any head up ?\n\n\n\nOn Wed, 6 Jun 2012 12:45:38 +0530\n\"J. Bakshi\" <joydeep.bakshi@infoservices.in> wrote:\n\n> \n> From the http://www.kernel.org/pub/software/scm/git/docs/v1.7.8/gitweb.html\n> I have found the following\n> \n> [.........]\n> \n> Here actual project root is passed to gitweb via GITWEB_PROJECT_ROOT environment variable from a web server,\n> so you need to put the following line in gitweb configuration file (/etc/gitweb.conf in above example):\n> \n> $projectroot = $ENV{'GITWEB_PROJECTROOT'} || \"/pub/git\";\n> \n> Note that this requires to be set for each request, so either $per_request_config must be false, \n> or the above must be put in code referenced by $per_request_config;\n> \n> [.........]\n> \n> \n> I have already set  \n> \n> $per_request_config = 'false';\n> \n> at /etc/gitweb.conf but no effect. \n> \n> I appreciate if anyone put me on the right track.\n> \n> Thanks\n> \n> On Tue, 5 Jun 2012 17:40:28 +0530\n> \"J. Bakshi\" <joydeep.bakshi@infoservices.in> wrote:\n> \n> > Dear list,\n> > \n> > My gitweb has been running since long with a single project root, which\n> > has been defined at the /etc/gitweb.conf through $projectroot variable.\n> > \n> > I need one more project root for gitweb, hence I have added this apache config\n> > ( not a vhost, but just calling by alias)\n> > \n> > ````````````````````\n> >  \n> > SetEnv GIT_PROJECT_ROOT /home/newgit/\n> > SetEnv GIT_HTTP_EXPORT_ALL\n> > SetEnv  GITWEB_CONFIG  /home/newgit/gitweb.conf\n> > #git is strict about the authenticated SSL certificate only\n> > #disable the strict CA certificate check\n> > SetEnv GIT_SSL_NO_VERIFY \n> > \n> > AliasMatch ^/newgit/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$       /home/newgit/$1\n> > AliasMatch ^/newgit/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /home/newgit/$1\n> > ScriptAliasMatch \\\n> >         \"(?x)^/newgit/(.*/(HEAD | \\\n> >                         info/refs | \\\n> >                         objects/info/[^/]+ | \\\n> >                         git-(upload|receive)-pack))$\" \\\n> >         /usr/lib/git-core/git-http-backend/$1\n> > \n> > #same location for gitweb\n> > Alias /newgit /usr/share/gitweb\n> > <Directory /usr/share/gitweb>\n> > Options FollowSymLinks +ExecCGI\n> > AddHandler cgi-script .cgi\n> > </Directory>\n> > \n> > #force https and authentication\n> > <LocationMatch \"/newgit\">\n> > # Require SSL connection for password protection.\n> > SSLRequireSSL\n> > AuthType Basic\n> > # Message to give to the committer\n> > AuthName \"access requires a password\"\n> > # File listing users with write (commit) access\n> > AuthUserFile /home/newgit/PASSWD\n> > Require valid-user\n> > </LocationMatch>\n> > \n> > `````````````````````````````````````````SetEnv\n> > \n> > But \"SetEnv  GITWEB_CONFIG\" as well as other SetEnv ( like SetEnv GIT_SSL_NO_VERIFY )\n> > is not been taken and as an effect the gitweb processing the default /etc/gitweb.conf and going to the\n> > old projectroot.\n> > \n> > What am I missing here ? any clue ?\n> > \n> > Thanks\n> > --\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"}]}