git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git via http problem

From
AEAleksey Egorov <alekseyandni@mail.ru>
Date
Oct 25, 2010, 10:34 UTC
Message-ID
<loom.20101025T123323-510@post.gmane.org>
Good day
I have installed apache2, Webdav and git-core on my Debian.
I added next information to the apache conf
        Alias /linter.git /var/www/linter.git
<Location /linter.git>
DAV On
AuthType Basic
Authname "localhost"
AuthUserFile /etc/apache2/users/pwd
Require valid-user
</Location>
pwd file was created by htpasswd, wich contain user test and password test.
my home/.netrc file contains
       machine localhost
       login test
       password test
And then when I type
       git push upload master
I see next errors
      error: Cannot access URL http://localhost/linter.git/, return code 22
      error: failed to push some refs to 'http://localhost/linter.git/'
In browaser all is ok, when I type http://localhost/linter.git/, user test and
password test, it shows directory on the server.
If I change apache conf to
      Alias /linter.git /var/www/linter.git
<Location /linter.git>
DAV On
AuthType Basic
Authname "localhost"
</Location>
git starts normal:
     git push upload master
     Fetching remote heads...
     refs/
     refs/heads/
     refs/tags/
     updating 'refs/heads/master'
     from 0000000000000000000000000000000000000000
     to aa36be4c3e46e619f73faa0cea071688cb380d25
What is the problem can be?
Next: Tay Ray Chuan
Message 1 of 5 in “git via http problem”
  1. Aleksey EgorovOct 25, 2010
  2. Tay Ray ChuanOct 25, 2010
  3. Re[2]: git via http problemАлексей Егоров, Oct 25, 2010
  4. Tay Ray ChuanOct 25, 2010
  5. Re[4]: git via http problemАлексей Егоров, Oct 26, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.