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

PROPFIND 405 with git-http-backend and Smart HTTP

From
BBo98 <boellisanderson@aol.com>
Date
Jul 29, 2012, 18:52 UTC
Message-ID
<1343587966493-7564017.post@n2.nabble.com>

I'm setting up a git server with git-http-backend and Smart HTTP but I'm getting PROPFIND Error 405 with git push.

Here's my config:
    <VirtualHost *:8000>
      ServerName localhost
      DocumentRoot /opt/local/apache2/htdocs/repo
      SetEnv GIT_PROJECT_ROOT /opt/local/apache2/htdocs/repo
      SetEnv GIT_HTTP_EXPORT_ALL
      ScriptAlias /repo/ /usr/libexec/git-core/git-http-backend/
      AliasMatch ^/repo/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$         
/opt/local/apache2/htdocs/repo/$1
      AliasMatch ^/repo/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$
/opt/local/apache2/htdocs/repo/$1
      ScriptAliasMatch \
        "(?x)^/repo/(.*/(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/libexec/git-core/git-http-backend/$1
      <LocationMatch "^/repo/.*/git-receive-pack$">
        AuthType Basic
        AuthName "Git"
        Require valid-user
        AuthUserFile /etc/apache2/other/htpasswd
      </LocationMatch>
    </VirtualHost>
And here's a snip from my access_log:
    ::1 - - [29/Jul/2012:18:34:34 +0100] "GET
/repo/myproject.git/info/refs?service=git-receive-pack HTTP/1.1" 200 117
    ::1 - - [29/Jul/2012:18:34:34 +0100] "GET /repo/myproject.git/HEAD
HTTP/1.1" 200 23
    ::1 - - [29/Jul/2012:18:34:34 +0100] "PROPFIND /repo/myproject.git/
HTTP/1.1" 405 247
Any ideas?

-- View this message in context: http://git.661346.n2.nabble.com/PROPFIND-405-with-git-http-backend-and-Smart-HTTP-tp7564017.html Sent from the git mailing list archive at Nabble.com.

Next: Shawn Pearce
Message 1 of 9 in “PROPFIND 405 with git-http-backend and Smart HTTP”
  1. Bo98Jul 29, 2012
  2. Shawn PearceJul 30, 2012
  3. Bo98Jul 30, 2012
  4. Shawn PearceJul 30, 2012
  5. Bo98Jul 30, 2012
  6. Shawn PearceJul 30, 2012
  7. Bo98Jul 30, 2012
  8. Drew NorthupAug 5, 2012
  9. lpicquetAug 14, 2014

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.