Am Sonntag, 13. Januar 2013 13:32:10 UTC+1 schrieb Thomas Ferris Nicolaisen:
>
> Could it be that Apache (or whatever webserver you use) is not correctly 
> configured? Please post the details of your environment along with the 
> Apache configuration. 
>

I don't think so, I have used the description from 
http://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html
and I have modified the configuration a little bit, so that I can use it 
with an Apache macro

<Macro GitAuthPush $rep>
    <LocationMatch "^/git/$rep/git-receive-pack$">
AuthType Basic
Require valid-user
AuthName "$rep Repository"
AuthUserFile /git/access.$rep
    </LocationMatch>
</Macro>

<Macro GitAuthBoth $rep>
    <LocationMatch "^/git/$rep/git-(upload|receive)-pack$">
AuthType Basic
Require valid-user
AuthName "$rep Repository"
AuthUserFile /git/access.$rep
    </LocationMatch>
</Macro>
 
The main Git repo configuration shows:
SetEnv REMOTE_USER REDIRECT_REMOTE_USER
SetEnv GIT_PROJECT_ROOT /git/repository
SetEnv GIT_HTTP_EXPORT_ALL

<Directory "/usr/lib/git-core/">
    <Files "git-http-backend">
Options ExecCGI Includes
SetHandler cgi-script
AcceptPathInfo On
    </Files>
</Directory>

ScriptAliasMatch \
        "(?x)^/git/(.*/(HEAD | \
                        info/refs | \
                        objects/(info/[^/]+ | \
                                 [0-9a-f]{2}/[0-9a-f]{38} | \
                                 pack/pack-[0-9a-f]{40}\.(pack|idx)) | \
                        git-(upload|receive)-pack))$" \
        /usr/lib/git-core/git-http-backend/$1

After this I use the "use" call for create a macro call. I don't see an 
error in
my configuration. Do you have an idea to solve the problem or do you see
an error in my configuration

Thanks

-- 


Reply via email to