httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S. Levent Yilmaz" <>
Subject [users@httpd] per location group based authentication
Date Thu, 07 Jul 2011 16:11:53 GMT
Hi all,

I am trying to setup URI based authentication, and am not sure if this
is doable. Currently, manually set permissions look like (omitting all
non-pertinent config details):

<Location /git/foo>
  Require group foo

<Location /git/bar>
  Require group bar


Is there anyway to do this automatically, where the group name is
derived from the URI somehow?

Let me provide some more details in order to explain the context
better.  I am trying to setup a simple CGI  based Git service over
http.  The question as you can see is not about Git at all, and
therefore could be relevant to any other CGI based service or similar.
Git server setup looks like:

ScriptAlias /git/   /usr/lib/git-core/git-http-backend/
<Location /git/>
   SetEnv GIT_PROJECT_ROOT /var/www/git
   # authentication settings

where, each request in the form "" or
"" is handled by git-http-backend to serve
the git repositories "/var/www/git/foo" and "/var/www/git/bar",
respectively.  I ran into this road block of setting up authentication
per repository basis. Hence the question.

Thank you very much!

- Levent

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message