git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bakshi" <joydeep.bakshi@infoservices.in>
To: git@vger.kernel.org
Subject: gitweb with multiple projectroot ???
Date: Mon, 4 Jun 2012 19:07:37 +0530	[thread overview]
Message-ID: <20120604190737.4f357a16@shiva.selfip.org> (raw)

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

             reply	other threads:[~2012-06-04 13:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-04 13:37 J. Bakshi [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120604190737.4f357a16@shiva.selfip.org \
    --to=joydeep.bakshi@infoservices.in \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).